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)?;