Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Sep 19, 2024
1 parent 6582d82 commit 5877dc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redacters/simple_image_redacter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pub fn redact_rgba_image_at_coords(
for y in
((y1 - y1 * approximation_factor) as u32)..((y2 + y2 * approximation_factor) as u32)
{
let safe_x = x.min(image.width() - 1).max(0);
let safe_y = y.min(image.height() - 1).max(0);
let safe_x = x.min(image.width() - 1);
let safe_y = y.min(image.height() - 1);
image.put_pixel(safe_x, safe_y, image::Rgb([0, 0, 0]));
}
}
Expand Down

0 comments on commit 5877dc8

Please sign in to comment.