From 815cf60f4559efa6e1e6ff84a7c11cbc96093005 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 16 Oct 2020 09:09:37 -0500 Subject: [PATCH] Fixing clippy. --- src/routes/images.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/images.rs b/src/routes/images.rs index 4b5ed981..98b13f99 100644 --- a/src/routes/images.rs +++ b/src/routes/images.rs @@ -74,7 +74,7 @@ async fn full_res( format!("{}/image/original/{}", Settings::get().pictrs_url, name,) } else { // Use jpg as a default when none is given - let format = params.format.unwrap_or("jpg".to_string()); + let format = params.format.unwrap_or_else(|| "jpg".to_string()); let mut url = format!( "{}/image/process.{}?src={}", -- 2.44.1