mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fixing clippy.
This commit is contained in:
parent
571c71392e
commit
815cf60f45
@ -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={}",
|
||||
|
Loading…
Reference in New Issue
Block a user