Skip to content

Commit

Permalink
fix: Remove redundant closure
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHamkerCat committed Sep 14, 2022
1 parent 890657e commit 4fbc836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub async fn set_wall_using_query(

// download the image
let filename =
save.map(|i| i.to_string()).unwrap_or_else(|| gen_tmpfile());
save.map(|i| i.to_string()).unwrap_or_else(gen_tmpfile);

let resp = reqwest::get(image_url).await?;

Expand Down

0 comments on commit 4fbc836

Please sign in to comment.