diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 0e42274..31f22e4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -245,9 +245,7 @@ fn write_boot( let mut resp = reqwest::blocking::get(FIRMWARE_BASE.to_owned() + fw)?.error_for_status()?; - let mut data = Vec::new(); - resp.copy_to(&mut data)?; - io::copy(&mut data.as_slice(), &mut file)?; + resp.copy_to(&mut file)?; } } |