mirror of
https://github.com/netbirdio/IronRDP.git
synced 2026-05-22 18:43:12 -07:00
fix(examples): fix arithmetic_side_effects
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
committed by
Benoît Cortier
parent
22779a7a21
commit
db3fb61253
@@ -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)| {
|
||||
|
||||
Reference in New Issue
Block a user