diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-19 14:31:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 14:31:19 -0500 |
commit | 2ff27a1f9327bf913d7b9d6aadc703a30a297e11 (patch) | |
tree | 2643c8b11279542c462c6c3d50da5f89d22e0d8f /cli/util/progress_bar/mod.rs | |
parent | 5a8adc342bcf01f535079d06778a9f244ba7e96f (diff) |
fix: hide progress bars when showing permission prompt (#17130)
Also adds download bytes progress when downloading remote specifiers.
Closes #16860
Diffstat (limited to 'cli/util/progress_bar/mod.rs')
-rw-r--r-- | cli/util/progress_bar/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/util/progress_bar/mod.rs b/cli/util/progress_bar/mod.rs index 8651e2d20..a20ac43c9 100644 --- a/cli/util/progress_bar/mod.rs +++ b/cli/util/progress_bar/mod.rs @@ -23,6 +23,7 @@ mod renderer; // Inspired by Indicatif, but this custom implementation allows // for more control over what's going on under the hood. +#[derive(Debug)] pub struct UpdateGuard { maybe_entry: Option<ProgressBarEntry>, } @@ -183,7 +184,7 @@ impl ProgressBarInner { { internal_state.start_time = SystemTime::now(); internal_state.draw_thread_guard = - Some(DrawThread::add_entry(0, Arc::new(self.clone()))); + Some(DrawThread::add_entry(Arc::new(self.clone()))); } } } |