Skip to content

Commit 3d20973

Browse files
committed
Fix debug panic on download with redirect body.
1 parent b4ab730 commit 3d20973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ impl<'a, 'cfg> Downloads<'a, 'cfg> {
10061006
let dl = &self.pending[&token].0;
10071007
dl.total.set(total);
10081008
let now = Instant::now();
1009-
if cur != dl.current.get() {
1009+
if cur > dl.current.get() {
10101010
let delta = cur - dl.current.get();
10111011
let threshold = self.next_speed_check_bytes_threshold.get();
10121012

0 commit comments

Comments
 (0)