fix: cargo clippy --fix

This commit is contained in:
Henrik Friedrichsen
2025-05-17 16:57:32 +02:00
parent 7d25f971dc
commit c294857002

View File

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