Clippy: fix main's five errors (font.rs, menu.rs, panel.rs) so PR checks pass again #4707
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4707"
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 kc01-8 on 2026-12-01T02:38:57Z.
mainfails its own Clippy step since #4634 (f5c3d2434), so every open PR'scheckis red:host/font.rs:213and:260:textandtext_righttake 9 arguments. Allowed with#[allow(clippy::too_many_arguments)], as elsewhere in the crate.host/menu.rs:667: the key repeat's% REPEAT_EVERY == 0becomes.is_multiple_of(REPEAT_EVERY).host/panel.rs:602and:668: two nestedifs 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, andcargo test --workspaceunder Proton's Wine fails the same tests asmaindoes.From the Linux/Proton fork: https://github.com/kc01-8/VIctoryNVIDIALINUX (branch
kc/trustno1).🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T06:57:39Z.
I checked this fix on current upstream main
5fabb46with native Windows Rust 1.98.1 and locked dependencies.f4396b7onto that base passed both strict workspace Clippy commands. That includes--all-targetswith and without--all-features.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.