clippy: the workspace passes clippy with -D warnings again #265
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!265
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-265"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Cannnabis on GitHub · 2026-11-27 20:19 UTC · original
Cannnabis:clippy-workspace-clean→main· +53 −27 · 23 files · 1 commits · openWhat this fixes
The CI's clippy step (
cargo clippy --workspace --all-targets --locked -- -D warnings) fails on main today: about 28 warnings invictory-gpuand one invictory. Nothing has run Actions here yet, so it has gone unseen. This brings the workspace to zero, mechanically and without behavior changes:is_multiple_ofwhere% n == 0was spelled by hand; the operator-precedence parentheses that came with them (dstorage.rs,texture.rsof both crates,land/tests.rs).port.rs,queue.rs— the values are the same).sort_unstable_by(|a, b| b.2.cmp(&a.2))→sort_unstable_by_key(|a| Reverse(...))indescriptor/host.rsanddraw.rs; needless borrows indraw.rsandresource.rs;dropof aCopyinpipeline/known.rs(theinsertstill happens);contains_keyinstead ofget(..).is_none()inxmem.rs's tests.write_sites.rskeep their shape and carry the why in their SAFETY comments (committed executable pages, the width of a code address, the calling convention kept); the lint needs an attribute to be silenced, and the tests' bindings already name the function type.pipeline.rsandshadow.rsalready do (#[cfg_attr(not(feature = "diagnostics"), allow(dead_code))]):host/indirects.rswhole,placed_filler_twins,Touch::Title. I checked each first — all are referenced behind the diagnostics cfg or by tests; deleting would have broken those builds.piece_at's eight arguments,from_level's convention,enum Late's variant size) carry#[allow(clippy::...)]with a one-line reason, asrecord_clamp_asalready does.indirect.rsgets one attribute-only line (Rig.depth_written, written only; the tests clear through their own handle) — without it--all-targetscannot reach zero.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings: exit 0, zero warnings.cargo test --workspace --locked --no-fail-fast: 1055 passed, 2 failed — the same two GPU-dependent indirect tests as on main here (issue #211, an RTX 4060 Ti; not from this change). No new failures anywhere.Environment
Windows 11, RTX 4060 Ti, Rust 1.98.1 (pinned).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.