Skip to content

Commit

Permalink
Fix debug panic on download with redirect body.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 5, 2021
1 parent b4ab730 commit 3d20973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl<'a, 'cfg> Downloads<'a, 'cfg> {
let dl = &self.pending[&token].0;
dl.total.set(total);
let now = Instant::now();
if cur != dl.current.get() {
if cur > dl.current.get() {
let delta = cur - dl.current.get();
let threshold = self.next_speed_check_bytes_threshold.get();

Expand Down

0 comments on commit 3d20973

Please sign in to comment.