From: Dessalines Date: Fri, 16 Oct 2020 14:09:37 +0000 (-0500) Subject: Fixing clippy. X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/readmes/README.ru.md?a=commitdiff_plain;h=815cf60f4559efa6e1e6ff84a7c11cbc96093005;p=lemmy.git Fixing clippy. --- 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={}",