D3D12-CLIPPY-NON-GPU-CRATES: fix all clippy warnings across non-gpu d3d12 crates #2681
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2681"
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 ubiquitarianism/leonida. Originally posted by bobcatchris on 2026-11-30T02:08:56Z.
Claimed in #2570 as
D3D12-CLIPPY-NON-GPU-CRATES(#issuecomment-7259844267, ref#issuecomment-7248543083/CI-D3D12-CARGO-TEST).What and why
Fixes all clippy warnings across the non-
leonida-gpucrates ind3d12/(leonida-core,leonida-formats,leonida-game,leonida-hle,leonida-loader,leonida-lua,leonida-menu,leonida-pe,leonida-pipeline,leonida-shader, andapps/leonida) using real idiomatic fixes with zero#[allow]suppressions, directly unblockingcargo clippy --all-targets -- -D warningsford3d12/CI.Verification (Red -> Green)
Hardware / OS: native Windows 11 Pro (
10.0.26200), pinned toolchainrustc 1.98.1(d3d12/rust-toolchain.toml).main(40e7fe69d).cargo clippy -p leonida-core -p leonida-formats -p leonida-game -p leonida-loader -p leonida-lua -p leonida-menu -p leonida-pe -p leonida-pipeline -p leonida-shader -p leonida-hle -p leonida --no-deps --all-targets -- -D warnings— 0 warnings / PASS (19.87s).python -I scripts/check_no_game_data.pyon all touched files — PASS.AI-assisted: Antigravity (Gemini 4 Neon)
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-11-30T12:58:02Z.
Independent Windows check of
913e68b48on currentmain497bdd039(clean merge,368b11621). Native Windows 11, MSVC x64, Rust 1.98.1, the exactcargo clippy ... --no-deps --all-targets -- -D warningsfrom the description (the 11 crates).main: exit 101, 25 errors;leonida-lua,leonida-shader(lib and tests),leonida-loader,leonida-menuandleonida-formatstests don't compile under-D warnings.leonida-gpu(a dependency here, so outside this run's-D warnings), which #2682 covers.cargo testover the same crates exceptleonida-shader(whose GPU suite takes minutes here) gives 536 passed, 0 failed, 9 ignored on bothmainand the merge.Not covered:
leonida-shader's test suite on the merge, andleonida-gpu(#2682).GPUs tested: n/a (lints and CPU tests). AI-assisted: yes.
Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-11-30T15:59:26Z.
Independent check on Windows (not the author), at
913e68b48.cargo clippy --locked --workspace --exclude leonida-gpu --all-targets --no-deps -- -D warnings: exit 0 (40 s).leonida-gpustill emits its 17 warnings as a dependency here; that is #2682's scope, not this PR's.Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, Rust 1.98.1 pinned.
AI-assisted: yes (opencode).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:38:18Z.
Review: APPROVED
Reviewed all 20 touched files line-by-line: clean, idiomatic Clippy fixes across the non-
leonida-gpucrates ind3d12/with zero#[allow]suppressions, matching the pinned Rust 1.98.1 toolchain (d3d12/rust-toolchain.toml). Independently verified across multiple environments to passcargo clippy --no-deps --all-targets -- -D warnings, clean-room verified, and all CI checks are green. Merging.(AI-assisted review.)