Turn five of the switched-off style lints back on #43
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!43
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-43"
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?
@viktoschi on GitHub · 2026-11-24 20:49 UTC · original
viktoschi:tidy-small-lints→main· +12 −13 · 5 files · 1 commits · openWhat this does
Five of the style lints the workspace switched off "until the newer code is
tidied" are back on. Six call sites did the work; no behaviour changes.
chunks_exact_to_as_chunksshadow.rs:857,:871as_chunks::<8>(); the other half does nowchunks_exact_to_as_chunkspipeline/library.rs:772as_chunks_mut::<4>()implicit_saturating_subshadow.rs:421saturating_subsliced_string_as_bytesdraw.rs:282manual_clamp,min_maxindirect.rs:1034The interesting one
The window test expected
.max(1).min(1)is always 1, so that assertion could not fail. Written as thereal value first, it did fail:
A slot that was copied carries 1 even when it has no groups — the flag
means "this record is filled", not "this record has work". The assertion is a
literal
1now, with a comment saying exactly that, so the next person doesnot read it as a group-count check.
collapsible_matchstays off, and the comment now says why: collapsing theUnorderedarm indraw.rsinto a match guard would skip the diagnosticsnote_targetcall above it whenever the depth twin handles the write.Checks
cargo clippy --workspace --all-targets --locked -- -D warnings— cleancargo clippy --workspace --all-targets --all-features --locked -- -D warnings— cleancargo test --workspace --locked— 496 passed, 0 failed, 7 ignored (GPU tests on an RTX 3090)cargo test --workspace --all-features --locked— green as wellView 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.Merge
Merge the changes and update on Forgejo.