victory-gpu: Clippy passes again in both CI builds #1242

Closed
github-bot wants to merge 1 commit from github-bot/gh-1242 into main AGit
Owner

@⁠GamingRipperDoc on GitHub · 2026-11-26 01:34 UTC · original
GamingRipperDoc:fix/main-clippy → main · +34 −32 · 8 files · 1 commits · closed without merging

CI's Clippy steps pass on main again. The pinned Clippy (1.98.1) stopped main (03f0002) at 10 errors in the plain build and 3 more in the diagnostics build, all in victory-gpu, so every pull request's check fails before its own changes are looked at.

What

  • queue.rs, shadow.rs, watch.rs, draw.rs: manual % n == 0 (and one != 0) checks become is_multiple_of.
  • draw.rs: the scissor census sorts with sort_unstable_by_key(Reverse).
  • fpsbox.rs: the box's text is made through the map's entry, not contains_key then insert then get.
  • pipeline/library.rs: the rename of a rejected library is one collapsed if let chain.
  • resource.rs: placed_filler_twins is built only with diagnostics, like its one caller (copystat). The counter it reads is unchanged.
  • indirect.rs: the A/B rig drops its depth_written field, which nothing read. The clear before the runs still uses the local handle.

No behaviour changes.

Tested

Windows 10 22H2, Rust 1.98.1 (the pinned toolchain).

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.
  • cargo test -p victory-gpu --lib --locked -- --test-threads=1 --skip depth_bounds: 192 passed, 2 failed. The same two fail on main without this commit: warp_budget_saturates_without_wraparound_and_preserves_draw_fields (#1110, #1098), and written_pages_are_reported_to_every_asker, which passes alone and fails only in the full serial run.
  • rustfmt: the changed lines add no drift beyond what those files already have on main.

Not fixed here: CI's test step will still fail on main. xtask's repository_passes_policy finds 12 asset-policy violations in the run logs under diagnostics/ (files over the 512 KiB limit, and two .txt.gz that aren't on the allowlist). Those are the maintainer's logs, so I left them alone.

No game data used.

AI-assisted (Claude Code); I ran the checks above on my machine.

🤖 Generated with Claude Code

**@⁠GamingRipperDoc** on GitHub · 2026-11-26 01:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/1242) `GamingRipperDoc:fix/main-clippy` → `main` · +34 −32 · 8 files · 1 commits · closed without merging CI's Clippy steps pass on `main` again. The pinned Clippy (1.98.1) stopped `main` (`03f0002`) at 10 errors in the plain build and 3 more in the diagnostics build, all in `victory-gpu`, so every pull request's check fails before its own changes are looked at. ## What - `queue.rs`, `shadow.rs`, `watch.rs`, `draw.rs`: manual `% n == 0` (and one `!= 0`) checks become `is_multiple_of`. - `draw.rs`: the scissor census sorts with `sort_unstable_by_key(Reverse)`. - `fpsbox.rs`: the box's text is made through the map's `entry`, not `contains_key` then `insert` then `get`. - `pipeline/library.rs`: the rename of a rejected library is one collapsed `if let` chain. - `resource.rs`: `placed_filler_twins` is built only with `diagnostics`, like its one caller (`copystat`). The counter it reads is unchanged. - `indirect.rs`: the A/B rig drops its `depth_written` field, which nothing read. The clear before the runs still uses the local handle. No behaviour changes. ## Tested Windows 10 22H2, Rust 1.98.1 (the pinned toolchain). - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings`: clean. - `cargo test -p victory-gpu --lib --locked -- --test-threads=1 --skip depth_bounds`: 192 passed, 2 failed. The same two fail on `main` without this commit: `warp_budget_saturates_without_wraparound_and_preserves_draw_fields` (#1110, #1098), and `written_pages_are_reported_to_every_asker`, which passes alone and fails only in the full serial run. - rustfmt: the changed lines add no drift beyond what those files already have on `main`. Not fixed here: CI's test step will still fail on `main`. `xtask`'s `repository_passes_policy` finds 12 asset-policy violations in the run logs under `diagnostics/` (files over the 512 KiB limit, and two `.txt.gz` that aren't on the allowlist). Those are the maintainer's logs, so I left them alone. No game data used. AI-assisted (Claude Code); I ran the checks above on my machine. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The 1.98 Clippy that CI pins stopped main at 10 errors in the plain build
and 3 more in the diagnostics build:

- manual `% n == 0` checks become `is_multiple_of` (queue, shadow, watch, draw)
- the scissor census sorts by key (draw)
- the fps box makes its text through the map's entry, not contains_key then insert (fpsbox)
- the rejected-library rename is one collapsed `if let` chain (pipeline/library)
- `placed_filler_twins` is built only with diagnostics, as its one caller, copystat, is (resource)
- the A/B rig drops its depth_written field, which nothing read; the clear still uses the local (indirect)

No behaviour changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:14 +00:00
github-bot closed this pull request 2026-11-26 06:25:17 +00:00
Author
Owner

@⁠GamingRipperDoc on GitHub · 2026-11-26 06:23 UTC · original

Closing this: 97f8dbc fixed the lints on main, and both Clippy steps pass there again (latest run on 46bf535: Clippy, Clippy diagnostics build, and both test steps green). It also gave the run logs under diagnostics/ their own asset-policy rule, which was the test failure I'd left out of scope here. Nothing in this PR is still needed, and it now conflicts with main.

No game data in this comment.

AI-assisted (Claude Code).

**@⁠GamingRipperDoc** on GitHub · 2026-11-26 06:23 UTC · [original](https://github.com/fxceless/victory-fork/pull/1242#issuecomment-7184376624) Closing this: `97f8dbc` fixed the lints on `main`, and both Clippy steps pass there again (latest run on `46bf535`: Clippy, Clippy diagnostics build, and both test steps green). It also gave the run logs under `diagnostics/` their own asset-policy rule, which was the test failure I'd left out of scope here. Nothing in this PR is still needed, and it now conflicts with `main`. No game data in this comment. AI-assisted (Claude Code).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.