From 1bb71242bc71ee0bb774aca7033da4f62e9321f8 Mon Sep 17 00:00:00 2001 From: Romet Tagobert Date: Mon, 15 Jan 2024 19:58:46 +0200 Subject: [PATCH] fix formatting for cranky --- crates/egui_extras/src/image.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/egui_extras/src/image.rs b/crates/egui_extras/src/image.rs index ad77ec730d4..a0b042e26ae 100644 --- a/crates/egui_extras/src/image.rs +++ b/crates/egui_extras/src/image.rs @@ -248,23 +248,23 @@ pub fn load_svg_bytes_with_size( Some(SizeHint::Size(w, h)) => { size = size.scale_to( IntSize::from_wh(w, h).ok_or_else(|| format!("Failed to scale SVG to {w}x{h}"))?, - ) + ); } Some(SizeHint::Height(h)) => { size = size .scale_to_height(h) - .ok_or_else(|| format!("Failed to scale SVG to height {h}"))? + .ok_or_else(|| format!("Failed to scale SVG to height {h}"))?; } Some(SizeHint::Width(w)) => { size = size .scale_to_width(w) - .ok_or_else(|| format!("Failed to scale SVG to width {w}"))? + .ok_or_else(|| format!("Failed to scale SVG to width {w}"))?; } Some(SizeHint::Scale(z)) => { let z_inner = z.into_inner(); size = size .scale_by(z_inner) - .ok_or_else(|| format!("Failed to scale SVG by {}", z_inner))? + .ok_or_else(|| format!("Failed to scale SVG by {z_inner}"))?; } }; let (w, h) = (size.width(), size.height());