Clippy: main's check job passes again after #4634 (five findings in font.rs, menu.rs and panel.rs) #4679
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4679"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RochDawid on 2026-12-01T01:36:05Z.
What it changes
The
CIworkflow'scheckjob fails onmainsince the merge of #4634 (f5c3d243): its Clippy step stops on five findings in the new menu and panel code, so the job is red for every pull request based on that commit. The run onmain: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46553617760too_many_arguments(9/7)host/font.rs:213(text),:260(text_right)#[allow(clippy::too_many_arguments)], as on 59 other functions in the treemanual_is_multiple_ofhost/menu.rs:667(held[i] - REPEAT_DELAY).is_multiple_of(REPEAT_EVERY)(bothu32)collapsible_ifhost/panel.rs:602,:668if … && let Some(pic) = …eachNo behaviour changes: the
&&still evaluatesstd::mem::take/std::mem::replacefirst and renders only when it is true, as the nestedifdid.How it was tested
main(f5c3d243), both Clippy gates fail with exactly the five findings above, the same as themainrun linked above.03da04b9):cargo clippy --workspace --all-targets --locked -- -D warningsandcargo clippy --workspace --all-targets --all-features --locked -- -D warnings, both for--target x86_64-pc-windows-msvc, pass. They were run on macOS throughcargo xwinwith Rust 1.98.1, not on Windows.cargo testpassed for the crates it touches: not run. The workspace's test binaries build and link forx86_64-pc-windows-msvc(cargo xwin test --workspace --locked --no-run), but I have no Windows machine to run them on. Themainrun above stopped at Clippy, so its Tests step did not run either.cargo xtask policy --staged: 3 files ok.Checked for overlap
host/font.rs,host/menu.rsorhost/panel.rs(for example #4541, #4435, #4480) do not touch these lines.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-12-01T01:44:21Z.
Native Windows verification on
03da04b9, Rust 1.98.1, with locked dependencies:cargo clippy --locked --workspace --all-targets -- -D warningspassed.cargo clippy --locked --workspace --all-targets --all-features -- -D warningspassed.cargo test --locked -p victory-gpu --lib -- host:: --test-threads=1finished with 243 passed and 30 ignored.The CI run on #4588, based on the same
f5c3d243main, hits the same five inherited findings. The workspace Clippy results above are from this PR's unchanged head. I did not run the game or visually test the overlays.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RochDawid on 2026-12-01T18:25:10Z.
Closing:
mainno longer has these five findings.f5c67e18put the F1 menu back on the paged menu, and the rework up toa82703f0rewrotefont.rs,menu.rsandpanel.rs, so none of the lines this changed is left.main's Clippy step still fails, but on other findings (victory-shader'semit/lower/lds_batch.rsandoracle64.rs, and new ones in victory-gpu), not on these.Pull request closed