From 7c2ce5b2829c122c09d355eb73fade4453a48277 Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 1 Dec 2024 22:17:21 +0100 Subject: [PATCH] Run cargo fmt --- mark/src/dither.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mark/src/dither.rs b/mark/src/dither.rs index bdec046..9031b4e 100644 --- a/mark/src/dither.rs +++ b/mark/src/dither.rs @@ -207,7 +207,9 @@ where } let x = (x as i32 + dx) as u32; let y = (y as i32 + dy) as u32; - let Some(pixel) = image.get_pixel_mut_checked(x, y) else{ return; }; + let Some(pixel) = image.get_pixel_mut_checked(x, y) else { + return; + }; let color: C = util::pixel_to_color(*pixel); let color = add(color, mul(error, factor)); util::update_pixel_with_color(pixel, color);