Linter fixes

This commit is contained in:
Henrik Friedrichsen
2022-12-28 14:34:17 +01:00
parent cf78f1aed3
commit 93816af654
5 changed files with 7 additions and 9 deletions

View File

@@ -31,7 +31,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)
let mut resp = reqwest::blocking::get(url)
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
std::fs::create_dir_all(path.parent().unwrap())?;