Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
with out keeper
Browse files Browse the repository at this point in the history
  • Loading branch information
kjuulh committed Jan 27, 2023
1 parent 997223e commit 59e59fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ impl Downloader {
let resp = reqwest::blocking::get(&archive_url)?;
let mut resp = resp.error_for_status()?;
let temp = NamedTempFile::new()?;
let (file, path) = temp.keep()?;
println!("path: {:?}", path);

let mut buf_writer = BufWriter::new(file);
let mut buf_writer = BufWriter::new(temp);
let mut bytes = vec![];
let _ = resp.read_to_end(&mut bytes)?;
buf_writer.write_all(bytes.as_slice())?;
Expand Down

0 comments on commit 59e59fd

Please sign in to comment.