Clippy: main's check job passes again after #4634 (five findings in font.rs, menu.rs and panel.rs) #4680
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4680
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@RochDawid on GitHub · 2026-12-01 01:36 UTC · original
RochDawid:fix/clippy-after-4634→main· +11 −9 · 3 files · 1 commits · closed without mergingWhat it changes
The
CIworkflow'scheckjob fails onmainsince the merge of #4635 (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 #4542, #4436, #4481) do not touch these lines.@tyr0nsur on GitHub · 2026-12-01 01:44 UTC · original
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 #4589, 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.github-bot referenced this pull request2026-12-01 10:30:36 +00:00
@RochDawid on GitHub · 2026-12-01 18:25 UTC · original
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