Skip to content

Commit 8905c03

Browse files
New Rust, new clippy :D
1 parent bb89891 commit 8905c03

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scribbles/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ pub fn get_scribble(
1919
) -> [u8; 1024] {
2020
let image = get_scribble_base(path, bottom, top);
2121

22-
if let Ok(image) = to_goxlr(image, invert) {
23-
image
24-
} else {
25-
[0; 1024]
26-
}
22+
to_goxlr(image, invert).unwrap_or([0; 1024])
2723
}
2824

2925
pub fn get_scribble_png(

0 commit comments

Comments
 (0)