lint: re-enable six relaxed clippy lints across gpu and shader crates #649
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/649"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by JulioMelo259 on 2026-11-25T03:59:40Z.
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(leavingundocumented_unsafe_blocksto #499, and leavingtype_complexity/sliced_string_as_bytesuntouched for now to avoid merge conflicts with hot filesemit/lower.rs,draw.rs, andhost.rs):collapsible_match(already clean)manual_clamp&min_max— simplified constantu32::from(groups > 0).max(1).min(1)to1incrates/victory-gpu/src/indirect.rstest assertionimplicit_saturating_sub— replaced manual check withsaturating_subincrates/victory-gpu/src/shadow.rschunks_exact_to_as_chunks— switched toas_chunks/as_chunks_mutincrates/victory-gpu/src/shadow.rsandcrates/victory-gpu/src/pipeline/library.rsneedless_range_loop— converted indexed loops to slice/iterator patterns incrates/victory-gpu/src/shadow.rs,crates/victory-shader/src/emit/own_bits.rs, andcrates/victory-shader/src/ir.rsValidation
cargo clippy --workspace --all-targets --all-features— 0 warningscargo test --workspace— 505 passed, 0 failed (8 ignored)cargo xtask policy— 169 files okAI-assisted (Gemini Neon + Oh My Pi + manual review/fixes), per fork convention.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.