Silence pre-existing clippy warnings so CI passes #5063

Open
github-bot wants to merge 1 commit from github-bot/gh-5062 into main AGit
Owner

@⁠t91a60 on GitHub · 2026-12-01 18:45 UTC · original
t91a60:fix/ci-clippy-green → main · +11 −9 · 3 files · 1 commits · open

[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.
**@⁠t91a60** on GitHub · 2026-12-01 18:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5062) `t91a60:fix/ci-clippy-green` → `main` · +11 −9 · 3 files · 1 commits · open [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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:49:57 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/font.rs
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-gpu/src/host/panel.rs
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.
git fetch -u origin '+refs/pull/5063/head:github-bot/gh-5062'
git switch 'github-bot/gh-5062'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-5062'
git switch 'github-bot/gh-5062'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-5062'
git switch 'github-bot/gh-5062'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-5062'
git switch 'main'
git merge --squash 'github-bot/gh-5062'
git switch 'main'
git merge --ff-only 'github-bot/gh-5062'
git switch 'main'
git merge 'github-bot/gh-5062'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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