Run cargo fmt
This commit is contained in:
parent
43853c8fda
commit
7c2ce5b282
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue