From 7f82f8da2bf4f653e4bb2f9368e6b14590da027f Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 26 Nov 2023 15:12:26 +0100 Subject: [PATCH] Remove unused variable --- crates/packaging/src/https.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/packaging/src/https.rs b/crates/packaging/src/https.rs index ec1df1291be..dd6fd825ae6 100644 --- a/crates/packaging/src/https.rs +++ b/crates/packaging/src/https.rs @@ -418,7 +418,6 @@ impl Read for HashReader { struct ProgressReporter { read: usize, total: usize, - last_reported: usize, reader: R, } @@ -426,7 +425,6 @@ impl ProgressReporter { fn new(reader: R, total: usize) -> Self { ProgressReporter { read: 0, - last_reported: 0, total, reader, } @@ -445,7 +443,6 @@ impl Read for ProgressReporter { self.total as f32 / 1_000_000.0, ); std::io::stdout().flush()?; - self.last_reported = self.read; if self.read >= self.total { println!("");