Skip to content

Commit 329121a

Browse files
authored
chore: Fixup chunks clippy lint (#430)
1 parent dce6067 commit 329121a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

neothesia-image/src/load.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn load_png(
2828
ColorType::Rgba => filled.to_vec(),
2929
ColorType::Rgb => {
3030
let mut v = Vec::with_capacity((filled.len() / 3) * 4);
31-
for chunk in filled.chunks_exact(3) {
31+
for chunk in filled.as_chunks::<3>().0 {
3232
v.extend_from_slice(chunk);
3333
v.push(255);
3434
}

0 commit comments

Comments
 (0)