Fix cargo clippy warnings

This commit is contained in:
Philip Kristoffersen
2021-09-25 12:04:12 +02:00
parent d634a26035
commit 993251156d
4 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ pub async fn download_images<'a, 'b>(
let mut file = File::create(path).unwrap();
let response = reqwest::get(image.url).await?;
let content = response.bytes().await?;
file.write(&content).unwrap();
file.write_all(&content).unwrap();
}
}
}