ci: fix workspace clippy -D warnings failures across default and diagnostics builds #3560
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3560"
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 Gauss999 on 2026-11-30T01:02:43Z.
What it changes
Fixes the pre-existing
cargo clippy ... -- -D warningserrors onmain(41adb551) across both default and--all-features(diagnostics) builds so the CIClippyandClippy, diagnostics buildsteps can pass cleanly:crates/victory-gpu/src/host/font.rs: remove unreachable duplicateb'%'match arm.crates/victory-gpu/src/lib.rs,crates/victory-hle/src/modules/lifecycle.rs: move items (set_range_lockre-export,keys_or_mouse) before#[cfg(test)] mod ...(clippy::items-after-test-module).crates/victory-gpu/src/pipeline/library.rs: add#[allow(clippy::incompatible_msrv)]onfile.try_lock()(workspace MSRV is1.88, toolchain is1.98.1) and use.is_multiple_of(500).AtomicBoolinshader_cache.rs,PAIR_MEETINGSinanalysis.rs, unusedlane_regionsre-export inlower.rs).ahead_snapbinding inhost.rs, prefix unused_busy(resource.rs) and_adapter(streamline.rs), drop redundant borrows (&list,&l,&cmds,&handles), replaceunwrap_or_elsewithunwrap_or(resource.rs),thenwiththen_some(gameinput.rs),x % 2 == 0withx.is_multiple_of(2)(host/panel.rs),while loadswithif loads { loop { ... } }(analysis.rs), constantassert!withconst { assert!(...) }(streamline.rs), and add#[allow(clippy::too_many_arguments)]oncompose::Compositor::recordandnative::tests::record.#[cfg_attr(not(feature = "diagnostics"), allow(dead_code))]onvictory_loader::crash::unwind_copy,#[cfg_attr(not(test), allow(dead_code))]onhost::take_spare_wb, and#[allow(dead_code)]on kept helpers inhost.rs,host/recycle.rs,descriptor/host.rs,pipeline.rs,pipeline/make.rs,memory.rs,shadow.rs, andwatch.rs.Validation
cargo clippy --workspace --all-targets --locked -- -D warnings: passed (exit 0)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed (exit 0)cargo xtask policy --staged: passed (23 files ok)victory-hlemodules::gameinput(84 passed),modules::lifecycle(15 passed),victory-loader(75 + 2 + 2 passed)Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:51:13Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed