fix(examples): fix arithmetic_side_effects

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau
2024-07-24 04:35:32 -04:00
committed by Benoît Cortier
parent 22779a7a21
commit db3fb61253
+1 -1
View File
@@ -160,7 +160,7 @@ fn run(
image
.data()
.chunks_exact(usize::from(image.width() * 4))
.chunks_exact(usize::from(image.width()).checked_mul(4).expect("never overflow"))
.enumerate()
.for_each(|(y, row)| {
row.chunks_exact(4).enumerate().for_each(|(x, pixel)| {