Conversation
Validation found that setting a matched question without a supported varstore returned success with an empty response and changed nothing. This could make callers mistake an unsupported operation for success. Return an explicit error naming the question when writable storage cannot be resolved. Preserve the normal write path for supported buffer and EFI varstores, and report success only after writing. Add tests for unresolved storage and OneOf questions. Keep existing question-not-found behaviour separate from this matched-question fix. Signed-off-by: Dishendra Deshmukh <dishendra.deshmukh@arm.com> Change-Id: I0861e2a8c7dca98c3b5edc965b494aaabc833286
Running rustfmt and Clippy with warnings denied exposed stale imports, needless borrows and matches, Vec reference arguments, ambiguous file creation options, and intentionally unused internal APIs. Clean up the handwritten Rust sources, make non-truncating lock-file creation explicit, use slices and infallible count conversions, and limit dead-code allowances to internal representations retained for parsing or future REST operations. The changes preserve behavior while allowing the maintained package to pass formatting and Clippy checks with warnings denied. Signed-off-by: Dishendra Deshmukh <dishendra.deshmukh@arm.com> Change-Id: I17146b9b95c12fc45e1816a8de475667ebf4cf7b
Member
|
On x86_64 it does not build for me: |
xaionaro
requested changes
Oct 5, 2026
xaionaro
left a comment
Member
There was a problem hiding this comment.
We need to ensure it builds both of x86 and arm64
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The reviewed changes are consistent with the stated lint-cleanup goals and introduce no unresolved correctness issues.
Review effort: Balanced
Findings: None
What changed in this PR
Cleans up handwritten Rust code to satisfy rustfmt and Clippy without intended runtime changes, while retaining the #19 write-safety dependency.
Changes:
- Simplifies matches, borrows, indexing, conversions, and formatting.
- Makes lock-file non-truncation explicit and narrows imports/dead-code allowances.
- Includes #19’s unsupported-varstore error handling and tests.
| File | Description |
|---|---|
src/main.rs |
Removes a needless path borrow. |
src/lib/ilorest/rest.rs |
Allows retained unused REST methods. |
src/lib/ilorest/chif.rs |
Allows the retained internal interface. |
src/lib/ilorest/blobstore.rs |
Simplifies transport control flow and buffer handling. |
src/lib/hii/package.rs |
Cleans test imports, checks, and indexing. |
src/lib/hii/forms.rs |
Applies lint fixes and unsupported-varstore handling. |
src/lib/file_lock.rs |
Explicitly preserves lock-file contents and simplifies matches. |
src/lib/exports.rs |
Removes obsolete unsupported-storage behavior and imports. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Collaborator
Author
|
Thanks for sharing the log. I’ll rerun Clippy, tests, and the build on both x86_64 and Arm64 before updating the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
conversions.
Context
Running rustfmt and Clippy with warnings denied exposed several maintenance
issues in the main package. These changes address those findings without
changing the generated Thrift sources or intended runtime behavior.
Validation
cargo fmt --package uefisettings -- --checkcargo clippy --locked --all-targets -- -D warningscargo test --locked --lib --binscargo build --release --lockedThe generated Thrift dependencies still emit their existing unused-import
warnings, but the maintained
uefisettingspackage passes Clippy with warningsdenied.
Dependency
This branch is based on #19. Merge #19 first; afterward this PR contains only
the formatting and lint-cleanup commit.