Commit c238c04
fix(parse): use as_chunks for a constant chunk size
Unrelated to this PR's bug fix, and included only because it blocks CI for
everything.
`chunks_exact_to_as_chunks` is a clippy lint added in Rust 1.98. CI runs a
toolchain new enough to have it; the line it flags predates this branch and is
untouched by it, so `main` is red for the same reason and every open PR against
this repo is blocked identically.
`as_chunks::<2>()` returns fixed-size arrays, so the two destructurings need no
bounds check and the pair can be bound directly in the pattern.
Verified on both sides of the lint's introduction: clean under nightly 1.99
(which reproduces CI's failure exactly) and still building under 1.96.1, so this
does not require the newer toolchain to compile.
Kept as its own commit so it can be dropped or cherry-picked independently of the
UTF-8 fix.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent c3a0b9c commit c238c04
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| |||
0 commit comments