base red: clippy -D warnings in cmux-wg-tun utun.rs and acpmux repo_sync_tests.rs
LA
2d ago+3+3+0123456789-4-4-0123456789
Two clippy -D warnings errors are red at the feat-cmux-next tip. They fail the --arg all step of every Rust PR. For example, R-INPUT's #34641: its green step 5a79450ad2d0 passed 57 of 57 of its own tests and failed only on these two.
cmux-tui/crates/cmux-wg-tun/src/utun.rs:32:std::mem::size_ofis in the prelude.unused_qualificationsis denied under-D warnings. Added by f18c96cb135 (#34248).cmux-tui/crates/acpmux/src/hub/permissions/repo_sync_tests.rs:11: a field is set right afterConfig::default(), which breaks clippy'sfield_reassign_with_default. Added by bf98a753624 (#34491). The test fixture now buildsConfigwith..Default::default(), asfolder_profiles_tests.rsalready does.
No behavior change. One is a test fixture, the other a path spelling.
Evidence: the workspace clippy step scripts/ci/cmux-tui-rust-check.sh --os linux --arg clippy at this head, step a03e4409634b56ecaaac2c55: running.
Observed / Not run
- Observed: the two errors in step 5a79450ad2d04812cd34cd68 at a feat-based head (log lines "unnecessary qualification" and "field assignment outside of initializer").
- Not run: nothing else; there is no behavior to test.
Changelog
none
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes two clippy -D warnings errors that were failing the CI --arg all step on every Rust PR at the feat-cmux-next tip. No behavior change.
utun.rsstops qualifyingsize_ofwithstd::mem::, which is redundant since it's in the prelude and fails theunused_qualificationslint.repo_sync_tests.rsbuildsConfigwith..Default::default()instead of assigning a field right afterConfig::default(), which fails thefield_reassign_with_defaultlint.