mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
Update all crates versions
This commit is contained in:
@@ -45,11 +45,9 @@ pub fn get_file(filename: &str) -> Result<(), String> {
|
||||
let mut file =
|
||||
File::create(path).map_err(|e| format!("Failed to create {}: {:?}", filename, e))?;
|
||||
|
||||
let mut response =
|
||||
reqwest::get(&url).map_err(|e| format!("Failed to download {}: {}", filename, e))?;
|
||||
let mut contents: Vec<u8> = vec![];
|
||||
response
|
||||
.copy_to(&mut contents)
|
||||
let contents = reqwest::blocking::get(&url)
|
||||
.map_err(|e| format!("Failed to download {}: {}", filename, e))?
|
||||
.bytes()
|
||||
.map_err(|e| format!("Failed to read {} response bytes: {}", filename, e))?;
|
||||
|
||||
file.write(&contents)
|
||||
|
||||
Reference in New Issue
Block a user