lint: re-enable six relaxed clippy lints across gpu and shader crates #649

Open
github-bot wants to merge 2 commits from github-bot/gh-649 into main AGit
Owner

@⁠JulioMelo259 on GitHub · 2026-11-25 03:59 UTC · original
JulioMelo259:lint/re-enable-gpu-clippy-lints → main · +22 −33 · 6 files · 2 commits · open

Follow-up to #499 and the clippy-lint alignment noted in #126.

Re-enables six of the remaining relaxed lints in the workspace Cargo.toml (leaving undocumented_unsafe_blocks to #499, and leaving type_complexity / sliced_string_as_bytes untouched for now to avoid merge conflicts with hot files emit/lower.rs, draw.rs, and host.rs):

  • collapsible_match (already clean)
  • manual_clamp & min_max — simplified constant u32::from(groups > 0).max(1).min(1) to 1 in crates/victory-gpu/src/indirect.rs test assertion
  • implicit_saturating_sub — replaced manual check with saturating_sub in crates/victory-gpu/src/shadow.rs
  • chunks_exact_to_as_chunks — switched to as_chunks / as_chunks_mut in crates/victory-gpu/src/shadow.rs and crates/victory-gpu/src/pipeline/library.rs
  • needless_range_loop — converted indexed loops to slice/iterator patterns in crates/victory-gpu/src/shadow.rs, crates/victory-shader/src/emit/own_bits.rs, and crates/victory-shader/src/ir.rs

Validation

  • cargo clippy --workspace --all-targets --all-features — 0 warnings
  • cargo test --workspace — 505 passed, 0 failed (8 ignored)
  • cargo xtask policy — 169 files ok

AI-assisted (Gemini Neon + Oh My Pi + manual review/fixes), per fork convention.

**@⁠JulioMelo259** on GitHub · 2026-11-25 03:59 UTC · [original](https://github.com/fxceless/victory-fork/pull/649) `JulioMelo259:lint/re-enable-gpu-clippy-lints` → `main` · +22 −33 · 6 files · 2 commits · open Follow-up to #499 and the clippy-lint alignment noted in #126. Re-enables six of the remaining relaxed lints in the workspace `Cargo.toml` (leaving `undocumented_unsafe_blocks` to #499, and leaving `type_complexity` / `sliced_string_as_bytes` untouched for now to avoid merge conflicts with hot files `emit/lower.rs`, `draw.rs`, and `host.rs`): - `collapsible_match` (already clean) - `manual_clamp` & `min_max` — simplified constant `u32::from(groups > 0).max(1).min(1)` to `1` in `crates/victory-gpu/src/indirect.rs` test assertion - `implicit_saturating_sub` — replaced manual check with `saturating_sub` in `crates/victory-gpu/src/shadow.rs` - `chunks_exact_to_as_chunks` — switched to `as_chunks` / `as_chunks_mut` in `crates/victory-gpu/src/shadow.rs` and `crates/victory-gpu/src/pipeline/library.rs` - `needless_range_loop` — converted indexed loops to slice/iterator patterns in `crates/victory-gpu/src/shadow.rs`, `crates/victory-shader/src/emit/own_bits.rs`, and `crates/victory-shader/src/ir.rs` ### Validation - `cargo clippy --workspace --all-targets --all-features` — 0 warnings - `cargo test --workspace` — 505 passed, 0 failed (8 ignored) - `cargo xtask policy` — 169 files ok AI-assisted (Gemini Neon + Oh My Pi + manual review/fixes), per fork convention.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:48:12 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-shader/src/ir.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/649/head:github-bot/gh-649'
git switch 'github-bot/gh-649'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-649'
git switch 'github-bot/gh-649'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-649'
git switch 'github-bot/gh-649'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-649'
git switch 'main'
git merge --squash 'github-bot/gh-649'
git switch 'main'
git merge --ff-only 'github-bot/gh-649'
git switch 'main'
git merge 'github-bot/gh-649'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.