Skip to content

Commit 3475859

Browse files
committed
remove unsafe
1 parent e209413 commit 3475859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ macro_rules! op_chunk {
762762
macro_rules! op_inter {
763763
($func:ident, $data:expr) => {
764764
$data.chunks_exact_mut(3).for_each(|pixel| {
765-
let pixel: &mut [T; 3] = unsafe { pixel.try_into().unwrap_unchecked() };
765+
let pixel: &mut [T; 3] = pixel.try_into().unwrap();
766766
$func(pixel);
767767
})
768768
};

0 commit comments

Comments
 (0)