Skip to content

Commit

Permalink
Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Jun 3, 2023
1 parent 46fbe8e commit 37cf4be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion alloy/src/image_cache/image_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ pub fn load_svg(path: &std::path::Path) -> Result<image::RgbaImage> {
// Scale to fit 4096
let zoom = 4096.0 / width.max(height);
let (width, height) = ((width * zoom) as u32, (height * zoom) as u32);
let zoom = zoom as f32;
// These unwrapped Options are fine as long as the dimensions are correct
let mut pixmap = Pixmap::new(width, height).unwrap();

Expand Down

0 comments on commit 37cf4be

Please sign in to comment.