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

Manually merged
github merged 1 commit from github-bot/gh-705 into main 2026-11-29 08:22:21 +00:00 AGit
Owner

@⁠XANDERSGONE on GitHub · 2026-11-28 03:54 UTC · original
XANDERSGONE:fix/ci-clippy → main · +5 −6 · 4 files · 1 commits · merged 2026-11-29 08:16 UTC

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.
**@⁠XANDERSGONE** on GitHub · 2026-11-28 03:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/705) `XANDERSGONE:fix/ci-clippy` → `main` · +5 −6 · 4 files · 1 commits · merged 2026-11-29 08:16 UTC 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.
manual_is_multiple_of (shadow.rs, descriptor.rs), let_and_return in an
emit test, and Some(x).filter(|_| ..) in gameinput.rs. No behaviour
change; clippy --workspace --all-targets is clean with and without
--all-features for x86_64-pc-windows-msvc.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JrBA1bmR5Ra6G3WNL17UVs
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 03:54:50 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-28 04:27 UTC · original · approved these changes

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

**@⁠Dukestar69** on GitHub · 2026-11-28 04:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/705#pullrequestreview-6095807926) · **approved these changes** 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).
github manually merged commit 66fbf2623f into main 2026-11-29 08:22:21 +00:00
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/trustno1-coder--VIctory-NVIDIA!705
No description provided.