D3D12-CLIPPY-NON-GPU-CRATES: fix all clippy warnings across non-gpu d3d12 crates #2681

Manually merged
github merged 1 commit from github-bot/gh-2681 into gh-pr/2681/base 2026-12-01 10:39:42 +00:00 AGit
Owner

@⁠bobcatchris on GitHub · 2026-11-30 02:08 UTC · original
bobcatchris:fix/d3d12-clippy-non-gpu → main · +61 −41 · 20 files · 1 commits · merged 2026-12-01 10:38 UTC

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-gpu crates in d3d12/ (leonida-core, leonida-formats, leonida-game, leonida-hle, leonida-loader, leonida-lua, leonida-menu, leonida-pe, leonida-pipeline, leonida-shader, and apps/leonida) using real idiomatic fixes with zero #[allow] suppressions, directly unblocking cargo clippy --all-targets -- -D warnings for d3d12/ CI.

Verification (Red -> Green)

Hardware / OS: native Windows 11 Pro (10.0.26200), pinned toolchain rustc 1.98.1 (d3d12/rust-toolchain.toml).

  • Rebased cleanly onto 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.py on all touched files — PASS.

AI-assisted: Antigravity (Gemini 4 Neon)

**@⁠bobcatchris** on GitHub · 2026-11-30 02:08 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2681) `bobcatchris:fix/d3d12-clippy-non-gpu` → `main` · +61 −41 · 20 files · 1 commits · merged 2026-12-01 10:38 UTC 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-gpu` crates in `d3d12/` (`leonida-core`, `leonida-formats`, `leonida-game`, `leonida-hle`, `leonida-loader`, `leonida-lua`, `leonida-menu`, `leonida-pe`, `leonida-pipeline`, `leonida-shader`, and `apps/leonida`) using real idiomatic fixes with **zero `#[allow]` suppressions**, directly unblocking `cargo clippy --all-targets -- -D warnings` for `d3d12/` CI. ### Verification (Red -> Green) Hardware / OS: native Windows 11 Pro (`10.0.26200`), pinned toolchain `rustc 1.98.1` (`d3d12/rust-toolchain.toml`). - Rebased cleanly onto `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.py` on all touched files — **PASS**. AI-assisted: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 02:12:07 +00:00
github-bot force-pushed github-bot/gh-2681 from b251a91f91 to 2c36650698 2026-11-30 06:22:42 +00:00 Compare
github-bot force-pushed github-bot/gh-2681 from 2c36650698 to 913e68b48a 2026-11-30 11:25:09 +00:00 Compare
Author
Owner

@⁠Kal0s-design on GitHub · 2026-11-30 12:58 UTC · original

Independent Windows check of 913e68b48 on current main 497bdd039 (clean merge, 368b11621). Native Windows 11, MSVC x64, Rust 1.98.1, the exact cargo clippy ... --no-deps --all-targets -- -D warnings from the description (the 11 crates).

  • main: exit 101, 25 errors; leonida-lua, leonida-shader (lib and tests), leonida-loader, leonida-menu and leonida-formats tests don't compile under -D warnings.
  • This PR: exit 0, no clippy warning in those crates. The only warnings printed are 17 rustc lints in leonida-gpu (a dependency here, so outside this run's -D warnings), which #2682 covers.
  • Tests are unchanged by the edits: cargo test over the same crates except leonida-shader (whose GPU suite takes minutes here) gives 536 passed, 0 failed, 9 ignored on both main and the merge.

Not covered: leonida-shader's test suite on the merge, and leonida-gpu (#2682).

GPUs tested: n/a (lints and CPU tests). AI-assisted: yes.

**@⁠Kal0s-design** on GitHub · 2026-11-30 12:58 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2681#issuecomment-7279168588) **Independent Windows check** of `913e68b48` on current `main` `497bdd039` (clean merge, `368b11621`). Native Windows 11, MSVC x64, Rust 1.98.1, the exact `cargo clippy ... --no-deps --all-targets -- -D warnings` from the description (the 11 crates). - `main`: exit 101, 25 errors; `leonida-lua`, `leonida-shader` (lib and tests), `leonida-loader`, `leonida-menu` and `leonida-formats` tests don't compile under `-D warnings`. - This PR: exit 0, no clippy warning in those crates. The only warnings printed are 17 rustc lints in `leonida-gpu` (a dependency here, so outside this run's `-D warnings`), which #2682 covers. - Tests are unchanged by the edits: `cargo test` over the same crates except `leonida-shader` (whose GPU suite takes minutes here) gives 536 passed, 0 failed, 9 ignored on both `main` and the merge. Not covered: `leonida-shader`'s test suite on the merge, and `leonida-gpu` (#2682). GPUs tested: n/a (lints and CPU tests). AI-assisted: yes.
Author
Owner

@⁠KelboLive on GitHub · 2026-11-30 15:59 UTC · original

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-gpu still 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).

**@⁠KelboLive** on GitHub · 2026-11-30 15:59 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2681#issuecomment-7283938227) 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-gpu` still 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).
github-bot changed target branch from main to gh-pr/2681/base 2026-12-01 10:39:19 +00:00
github manually merged commit 913e68b48a into gh-pr/2681/base 2026-12-01 10:39:21 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-12-01 10:38 UTC · original · approved these changes

Reviewed all 20 touched files line-by-line: clean, idiomatic Clippy fixes across the non-leonida-gpu crates in d3d12/ with zero #[allow] suppressions, matching the pinned Rust 1.98.1 toolchain (d3d12/rust-toolchain.toml). Independently verified across multiple environments to pass cargo clippy --no-deps --all-targets -- -D warnings, clean-room verified, and all CI checks are green. Merging.

(AI-assisted review.)

**@⁠aslan2142** on GitHub · 2026-12-01 10:38 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2681#pullrequestreview-6129573691) · **approved these changes** Reviewed all 20 touched files line-by-line: clean, idiomatic Clippy fixes across the non-`leonida-gpu` crates in `d3d12/` with zero `#[allow]` suppressions, matching the pinned Rust 1.98.1 toolchain (`d3d12/rust-toolchain.toml`). Independently verified across multiple environments to pass `cargo clippy --no-deps --all-targets -- -D warnings`, clean-room verified, and all CI checks are green. Merging. *(AI-assisted review.)*
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/ubiquitarianism--leonida!2681
No description provided.