1 parent dce6067 commit 329121aCopy full SHA for 329121a
1 file changed
neothesia-image/src/load.rs
@@ -28,7 +28,7 @@ pub fn load_png(
28
ColorType::Rgba => filled.to_vec(),
29
ColorType::Rgb => {
30
let mut v = Vec::with_capacity((filled.len() / 3) * 4);
31
- for chunk in filled.chunks_exact(3) {
+ for chunk in filled.as_chunks::<3>().0 {
32
v.extend_from_slice(chunk);
33
v.push(255);
34
}
0 commit comments