From c294857002f4237085414a402e59e936ca0d1d2f Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Sat, 17 May 2025 16:57:32 +0200 Subject: [PATCH] fix: `cargo clippy --fix` --- src/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index b766fa4..fea0934 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -50,8 +50,7 @@ pub fn cache_path_for_url(url: String) -> std::path::PathBuf { } pub fn download(url: String, path: std::path::PathBuf) -> Result<(), std::io::Error> { - let mut resp = reqwest::blocking::get(url) - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; + let mut resp = reqwest::blocking::get(url).map_err(std::io::Error::other)?; std::fs::create_dir_all(path.parent().unwrap())?; let mut file = std::fs::File::create(path)?;