CI: clear the four clippy -D warnings errors on main #705
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/705"
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 XANDERSGONE on 2026-11-28T03:54:04Z.
CI's Clippy step (
-D warnings) fails on main at8fc2254, socargo testnever runs. This fixes the four lints it stops on, with no change in behaviour:crates/victory-gpu/src/shadow.rs:1708:turns % 16 == 0becomesturns.is_multiple_of(16)(manual_is_multiple_of)crates/victory-gpu/src/descriptor.rs:1234:count % 50_000 == 0becomescount.is_multiple_of(50_000)(only in the--all-featuresbuild)crates/victory-shader/src/emit/mod.rs:2768: the test helper returnslower(...).unwrap()directly (let_and_return)crates/victory-hle/src/modules/gameinput.rs:1372:Some(vk).filter(|_| i < scripted_keys)becomes(i < scripted_keys).then_some(vk)Checked:
cargo clippy --workspace --all-targets --locked -- -D warningsis clean forx86_64-pc-windows-msvc, with and without--all-features. On a fork run with this change,cargo testreaches the tests: 451 pass and 2 fail invictory-gpu, both outside this change.pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawsfails on the hosted runner, which has no real GPU, andwatch::tests::a_write_opens_the_view_it_goes_throughfails too. Those two are left for separate fixes.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-28T04:27:47Z.
Review: APPROVED
LGTM — verified on Windows (Rust 1.98):
cargo clippy --workspace --all-targets -- -D warningspassed with 0 warnings across the entire workspacecargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).