style(format): as_chunks_mut in the un-shuffle interleave (clippy)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
f3d63dbdcd
commit
b36c6ec2af
@@ -855,9 +855,9 @@ fn shuffle_decompress(data: &[u8], element_size: usize) -> Result<Vec<u8>, Forma
|
||||
// element sizes.
|
||||
fn interleave<const W: usize>(data: &[u8], n: usize, out: &mut [u8]) {
|
||||
let planes: [&[u8]; W] = core::array::from_fn(|j| &data[j * n..(j + 1) * n]);
|
||||
for (i, element) in out.chunks_exact_mut(W).enumerate() {
|
||||
for j in 0..W {
|
||||
element[j] = planes[j][i];
|
||||
for (i, element) in out.as_chunks_mut::<W>().0.iter_mut().enumerate() {
|
||||
for (byte, plane) in element.iter_mut().zip(&planes) {
|
||||
*byte = plane[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user