spikes/gpui: clippy -D warnings clean on nightly (as_chunks, bounded range)

Nightly's clippy flagged the two chunks_exact(4) loops of
common/src/bgra.rs (chunks_exact_to_as_chunks): both now use
as_chunks::<4>() and as_chunks_mut::<4>() (stable since 1.88). Behind
them, because clippy stops at the first crate that fails, it flags the
raw source's `for n in 0u64..` in video/src/main.rs
(for_unbounded_range): now `0..=u64::MAX`, the same loop.

`cargo clippy --locked --all-targets -- -D warnings` is clean on 1.95.0
and on nightly 2026-10-24 (through shell.sh); the README and the
report's clippy sentence say so.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-27 04:45:53 +03:00
1 parent 5c36aae55e
commit 24069ac170
4 files changed
+17 -10

No files matched your search

+6 -3
View File
@@ -359,10 +359,13 @@ error: could not compile `gpui-pre` (lib) due to 2 previous errors
So step 3 starts by moving `rust-toolchain.toml` to 1.95 (or the stable of
the day) in the root workspace, a change of its own with the usual checks.
The spikes build on 1.95.0 and on nightly 2026-10-24 and pass clippy with
`-D warnings` on 1.95.0 at every commit; nightly's clippy has a lint 1.95
does not (`chunks_exact_to_as_chunks`) and flags two `chunks_exact(4)`
`--all-targets -- -D warnings` on both. Nightly's clippy has two lints
1.95 does not: `chunks_exact_to_as_chunks` flagged two `chunks_exact(4)`
loops in `spikes/gpui/common/src/bgra.rs` (the packed-RGBA branch and a
test), left as they are.
test), now `as_chunks::<4>()` (stable since 1.88); behind them, because
clippy stops at the first crate that fails, `for_unbounded_range` flagged
the raw source's `for n in 0u64..` in `spikes/gpui/video/src/main.rs`, now
`0..=u64::MAX`.
### Dependencies