fix some clippy lints

This commit is contained in:
Johann150
2023-12-29 00:58:29 +01:00
parent cbdbe6b207
commit f8e6dc7de7
3 changed files with 16 additions and 19 deletions

View File

@@ -98,7 +98,7 @@ fn load_image(path: &str, size: (u16, u16)) -> DynamicImage {
}
// Load the image
let image = image::open(&path).unwrap();
let image = image::open(path).unwrap();
// Resize the image to fit the screen
image.resize_exact(size.0 as u32, size.1 as u32, FilterType::Gaussian)