Skip to content

Commit

Permalink
New Rust, new clippy :D
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Sep 12, 2024
1 parent bb89891 commit 8905c03
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scribbles/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ pub fn get_scribble(
) -> [u8; 1024] {
let image = get_scribble_base(path, bottom, top);

if let Ok(image) = to_goxlr(image, invert) {
image
} else {
[0; 1024]
}
to_goxlr(image, invert).unwrap_or([0; 1024])
}

pub fn get_scribble_png(
Expand Down

0 comments on commit 8905c03

Please sign in to comment.