Effects: the .spimtx parser reads its rows with as_chunks

clippy 1.99 (current stable, which CI tracks unpinned) fails the
workspace gate on chunks_exact_to_as_chunks in parse_spimtx. The length
is already checked to be 12, so as_chunks::<4>() has no remainder and
the behaviour is unchanged; the workspace's rust-version (1.95) has it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Jeremy YaoandClaude Fable 5.1 committed 2026-10-10 09:36:59 -04:00
1 parent d86c4aff52
commit a91952dadc
1 file changed
+1 -1
+1 -1
View File
@@ -372,7 +372,7 @@ pub fn parse_spimtx(text: &str) -> Option<FileXform> {
}
let mut m = [0.0; 16];
let mut offset = [0.0; 4];
for (r, row) in v.chunks_exact(4).enumerate() {
for (r, row) in v.as_chunks::<4>().0.iter().enumerate() {
m[r * 4..r * 4 + 3].copy_from_slice(&row[..3]);
offset[r] = row[3] / 65535.0;
}