Clippy: fix main's five errors (font.rs, menu.rs, panel.rs) so PR checks pass again #4708

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

@⁠kc01-8 on GitHub · 2026-12-01 02:38 UTC · original
kc01-8:kc/clippy-main-1201 → main · +11 −9 · 3 files · 1 commits · open

main fails its own Clippy step since #4635 (f5c3d2434), so every open PR's check is red:

  • host/font.rs:213 and :260: text and text_right take 9 arguments. Allowed with #[allow(clippy::too_many_arguments)], as elsewhere in the crate.
  • host/menu.rs:667: the key repeat's % REPEAT_EVERY == 0 becomes .is_multiple_of(REPEAT_EVERY).
  • host/panel.rs:602 and :668: two nested ifs are collapsed into let chains.

Nothing changes in behavior. Here, both of the CI's Clippy steps (--workspace --all-targets, with and without --all-features, -D warnings) report 0 errors, and cargo test --workspace under Proton's Wine fails the same tests as main does.

From the Linux/Proton fork: https://github.com/kc01-8/VIctoryNVIDIALINUX (branch kc/trustno1).

🤖 Generated with Claude Code

**@⁠kc01-8** on GitHub · 2026-12-01 02:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4707) `kc01-8:kc/clippy-main-1201` → `main` · +11 −9 · 3 files · 1 commits · open `main` fails its own Clippy step since #4635 (f5c3d2434), so every open PR's `check` is red: - `host/font.rs:213` and `:260`: `text` and `text_right` take 9 arguments. Allowed with `#[allow(clippy::too_many_arguments)]`, as elsewhere in the crate. - `host/menu.rs:667`: the key repeat's `% REPEAT_EVERY == 0` becomes `.is_multiple_of(REPEAT_EVERY)`. - `host/panel.rs:602` and `:668`: two nested `if`s are collapsed into let chains. Nothing changes in behavior. Here, both of the CI's Clippy steps (`--workspace --all-targets`, with and without `--all-features`, `-D warnings`) report 0 errors, and `cargo test --workspace` under Proton's Wine fails the same tests as `main` does. From the Linux/Proton fork: https://github.com/kc01-8/VIctoryNVIDIALINUX (branch `kc/trustno1`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
`text` and `text_right` take nine arguments (allowed, as elsewhere in the
crate); the key repeat uses `is_multiple_of`; the panel's two nested `if`s
are collapsed into let chains. No change in behavior.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 02:41:37 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 06:57 UTC · original

I checked this fix on current upstream main 5fabb46 with native Windows Rust 1.98.1 and locked dependencies.

  • Clean main reproduced all five Clippy findings from the Windows CI job.
  • Cherry-picking f4396b7 onto that base passed both strict workspace Clippy commands. That includes --all-targets with and without --all-features.
  • Applying the exact current changes from #3833 (7fa2234) and #4018 (86084fd) on top still passed both commands. The two existing PR checks stop at the same five findings on their current base.

This verifies the fix against the current base and the two PRs blocked on it. The Windows check on this PR also passed both Clippy steps and Tests.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 06:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4707#issuecomment-7303481996) I checked this fix on current upstream main `5fabb46` with native Windows Rust 1.98.1 and locked dependencies. - Clean main reproduced all five Clippy findings from the Windows CI job. - Cherry-picking `f4396b7` onto that base passed both strict workspace Clippy commands. That includes `--all-targets` with and without `--all-features`. - Applying the exact current changes from #3833 (`7fa2234`) and #4018 (`86084fd`) on top still passed both commands. The two existing PR checks stop at the same five findings on their current base. This verifies the fix against the current base and the two PRs blocked on it. The [Windows check on this PR](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46562670350/job/142353819286) also passed both Clippy steps and Tests.
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/4708/head:github-bot/gh-4707'
git switch 'github-bot/gh-4707'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4707'
git switch 'github-bot/gh-4707'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4707'
git switch 'github-bot/gh-4707'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4707'
git switch 'main'
git merge --squash 'github-bot/gh-4707'
git switch 'main'
git merge --ff-only 'github-bot/gh-4707'
git switch 'main'
git merge 'github-bot/gh-4707'
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!4708
No description provided.