Fixing clippy.

pull/1210/head
Dessalines 2020-10-16 09:09:37 -05:00
parent 571c71392e
commit 815cf60f45
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ async fn full_res(
format!("{}/image/original/{}", Settings::get().pictrs_url, name,) format!("{}/image/original/{}", Settings::get().pictrs_url, name,)
} else { } else {
// Use jpg as a default when none is given // 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!( let mut url = format!(
"{}/image/process.{}?src={}", "{}/image/process.{}?src={}",