Fix unused import error in nightly musl clippy exhaustive check#948
Fix unused import error in nightly musl clippy exhaustive check#948jsturtevant merged 1 commit intomainfrom
Conversation
|
@copilot rebase and run |
Rebased onto latest main (036d3ae) and verified with The test failures are expected due to missing hypervisor in the sandboxed environment ("No Hypervisor was found for Sandbox"), but the critical clippy verification completed successfully with the fix. Commit: 78427ba Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
a28bd0c to
1be8e42
Compare
|
I ran the tests locally for musl build and they are passing |
Fix unused import error in nightly musl clippy exhaustive check
initialized_multi_use.rsErrorCodewithin 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
ErrorCodein thetest_violate_seccomp_filterstest function. The import was already available at module level (line 31), making the local import on line 664 unnecessary. When theseccompfeature 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-exhaustivecheck 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.