Silence pre-existing clippy warnings so CI passes #5062

Open
t91a60 wants to merge 1 commit from upstream-pr/5062 into main
t91a60 commented 2026-12-01 18:45:46 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by t91a60 on 2026-12-01T18:45:46Z.


[pr-fix] Short description: silence pre-existing clippy warnings so CI passes

Fixes #

What it changes

Pre-existing clippy failures under -D warnings blocked CI on almost every PR/push. This PR fixes the ones found on a clean build of main:

  • crates/victory-gpu/src/host/font.rs: too_many_arguments on text and text_right (9 args each). Added #[allow(clippy::too_many_arguments)]; grouping into a struct would be a larger refactor out of scope.
  • crates/victory-gpu/src/host/menu.rs: manual_is_multiple_of at the repeat-key check; replaced % REPEAT_EVERY == 0 with .is_multiple_of(REPEAT_EVERY).
  • crates/victory-gpu/src/host/panel.rs: two collapsible_if sites in the stats/notice render paths; collapsed nested if into a single if ... && let Some(...).

No gameplay, settings, or performance paths changed.

How it was tested

  • cargo clippy --workspace --all-targets --locked -- -D warnings -> exit 0 (clean target dir)
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings -> exit 0 (clean target dir)
  • cargo test --workspace --locked -> 1233-ish tests pass; one pre-existing flaky test (a_read_by_range_waits_only_for_a_remapping_that_meets_it) failed intermittently under parallel load and is unrelated to these changes.

Checked for overlap

  • Searched open PRs/issues for these files. Related: none found.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5592224028 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5062). Originally posted by [t91a60](https://github.com/t91a60) on 2026-12-01T18:45:46Z. --- [pr-fix] Short description: silence pre-existing clippy warnings so CI passes Fixes # ## What it changes Pre-existing clippy failures under `-D warnings` blocked CI on almost every PR/push. This PR fixes the ones found on a clean build of main: - `crates/victory-gpu/src/host/font.rs`: `too_many_arguments` on `text` and `text_right` (9 args each). Added `#[allow(clippy::too_many_arguments)]`; grouping into a struct would be a larger refactor out of scope. - `crates/victory-gpu/src/host/menu.rs`: `manual_is_multiple_of` at the repeat-key check; replaced `% REPEAT_EVERY == 0` with `.is_multiple_of(REPEAT_EVERY)`. - `crates/victory-gpu/src/host/panel.rs`: two `collapsible_if` sites in the stats/notice render paths; collapsed nested `if` into a single `if ... && let Some(...)`. No gameplay, settings, or performance paths changed. ## How it was tested - `cargo clippy --workspace --all-targets --locked -- -D warnings` -> exit 0 (clean target dir) - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` -> exit 0 (clean target dir) - `cargo test --workspace --locked` -> 1233-ish tests pass; one pre-existing flaky test (`a_read_by_range_waits_only_for_a_remapping_that_meets_it`) failed intermittently under parallel load and is unrelated to these changes. ## Checked for overlap - [x] Searched open PRs/issues for these files. Related: none found.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/5062:upstream-pr/5062'
git switch 'upstream-pr/5062'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/5062'
git switch 'upstream-pr/5062'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/5062'
git switch 'upstream-pr/5062'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/5062'
git switch 'main'
git merge --squash 'upstream-pr/5062'
git switch 'main'
git merge --ff-only 'upstream-pr/5062'
git switch 'main'
git merge 'upstream-pr/5062'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!5062
No description provided.