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

Closed
GamingRipperDoc wants to merge 1 commit from upstream-pr/1242 into main
GamingRipperDoc commented 2026-11-26 01:34:51 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-26T01:34:51Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:issue:6617495882 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1242). Originally posted by [GamingRipperDoc](https://github.com/GamingRipperDoc) on 2026-11-26T01:34:51Z. --- 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)
upstream-sync closed this pull request 2026-11-26 07:03:51 +00:00
GamingRipperDoc commented 2026-11-26 07:03:53 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by GamingRipperDoc on 2026-11-26T06:23:05Z.


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

<!-- greyfinch-sync:fxceless/victory-fork:comment:7184376624 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1242#issuecomment-7184376624). Originally posted by [GamingRipperDoc](https://github.com/GamingRipperDoc) on 2026-11-26T06:23:05Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1239
No description provided.