From a91952dadc54a0a572a16b98a7f1bf7b3513c986 Mon Sep 17 00:00:00 2001 From: Jeremy Yao Date: Sat, 10 Oct 2026 09:36:59 -0400 Subject: [PATCH] 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 --- crates/effects/src/ocio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/effects/src/ocio.rs b/crates/effects/src/ocio.rs index d00f6e9e..c8fcf848 100644 --- a/crates/effects/src/ocio.rs +++ b/crates/effects/src/ocio.rs @@ -372,7 +372,7 @@ pub fn parse_spimtx(text: &str) -> Option { } 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; }