CI: clear the four clippy -D warnings errors on main #705

Merged
XANDERSGONE merged 1 commit from upstream-pr/705 into main 2026-11-29 08:16:58 +00:00
XANDERSGONE commented 2026-11-28 03:54:04 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by XANDERSGONE on 2026-11-28T03:54:04Z.


CI's Clippy step (-D warnings) fails on main at 8fc2254, so cargo test never runs. This fixes the four lints it stops on, with no change in behaviour:
 

  • crates/victory-gpu/src/shadow.rs:1708: turns % 16 == 0 becomes turns.is_multiple_of(16) (manual_is_multiple_of)
  • crates/victory-gpu/src/descriptor.rs:1234: count % 50_000 == 0 becomes count.is_multiple_of(50_000) (only in the --all-features build)
  • crates/victory-shader/src/emit/mod.rs:2768: the test helper returns lower(...).unwrap() directly (let_and_return)
  • crates/victory-hle/src/modules/gameinput.rs:1372: Some(vk).filter(|_| i < scripted_keys) becomes (i < scripted_keys).then_some(vk)
    Checked: cargo clippy --workspace --all-targets --locked -- -D warnings is clean for x86_64-pc-windows-msvc, with and without --all-features. On a fork run with this change, cargo test reaches the tests: 451 pass and 2 fail in victory-gpu, both outside this change. pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws fails on the hosted runner, which has no real GPU, and watch::tests::a_write_opens_the_view_it_goes_through fails too. Those two are left for separate fixes.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5536418093 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/705). Originally posted by [XANDERSGONE](https://github.com/XANDERSGONE) on 2026-11-28T03:54:04Z. --- CI's Clippy step (`-D warnings`) fails on main at `8fc2254`, so `cargo test` never runs. This fixes the four lints it stops on, with no change in behaviour:   - `crates/victory-gpu/src/shadow.rs:1708`: `turns % 16 == 0` becomes `turns.is_multiple_of(16)` (`manual_is_multiple_of`) - `crates/victory-gpu/src/descriptor.rs:1234`: `count % 50_000 == 0` becomes `count.is_multiple_of(50_000)` (only in the `--all-features` build) - `crates/victory-shader/src/emit/mod.rs:2768`: the test helper returns `lower(...).unwrap()` directly (`let_and_return`) - `crates/victory-hle/src/modules/gameinput.rs:1372`: `Some(vk).filter(|_| i < scripted_keys)` becomes `(i < scripted_keys).then_some(vk)` Checked: `cargo clippy --workspace --all-targets --locked -- -D warnings` is clean for `x86_64-pc-windows-msvc`, with and without `--all-features`. On a fork run with this change, `cargo test` reaches the tests: 451 pass and 2 fail in `victory-gpu`, both outside this change. `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws` fails on the hosted runner, which has no real GPU, and `watch::tests::a_write_opens_the_view_it_goes_through` fails too. Those two are left for separate fixes.
Dukestar69 commented 2026-11-28 04:27:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-28T04:27:47Z.

Review: APPROVED


LGTM — verified on Windows (Rust 1.98):

  • cargo clippy --workspace --all-targets -- -D warnings passed with 0 warnings across the entire workspace
  • cargo xtask policy passed (294 files ok)

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6095807926 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/705#pullrequestreview-6095807926). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-28T04:27:47Z. **Review:** APPROVED --- LGTM — verified on Windows (Rust 1.98): - `cargo clippy --workspace --all-targets -- -D warnings` passed with 0 warnings across the entire workspace - `cargo xtask policy` passed (`294 files ok`) Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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
trustno1-coder/VIctory-NVIDIA!705
No description provided.