Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Nov 26, 2023
1 parent b55336f commit 7f82f8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/packaging/src/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,13 @@ impl<R: Read> Read for HashReader<R> {
struct ProgressReporter<R: Read> {
read: usize,
total: usize,
last_reported: usize,
reader: R,
}

impl<R: Read> ProgressReporter<R> {
fn new(reader: R, total: usize) -> Self {
ProgressReporter {
read: 0,
last_reported: 0,
total,
reader,
}
Expand All @@ -445,7 +443,6 @@ impl<R: Read> Read for ProgressReporter<R> {
self.total as f32 / 1_000_000.0,
);
std::io::stdout().flush()?;
self.last_reported = self.read;

if self.read >= self.total {
println!("");
Expand Down

0 comments on commit 7f82f8d

Please sign in to comment.