Fix unused import error in nightly musl clippy exhaustive check #948
+2
−5
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.
Fix unused import error in nightly musl clippy exhaustive check
initialized_multi_use.rs
ErrorCode
within a test functionjust target-triple=x86_64-unknown-linux-musl like-ci debug
- all clippy checks passedSummary
Fixed the nightly musl clippy failure by removing a redundant local import of
ErrorCode
in thetest_violate_seccomp_filters
test function. The import was already available at module level (line 31), making the local import on line 664 unnecessary. When theseccomp
feature is disabled (as in musl target tests), this local import becomes unused and causes clippy to fail with-D warnings
.The fix has been verified with multiple feature combinations including the full
clippy-exhaustive
check with musl target.Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.