From 2ff27a1f9327bf913d7b9d6aadc703a30a297e11 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 19 Dec 2022 14:31:19 -0500 Subject: fix: hide progress bars when showing permission prompt (#17130) Also adds download bytes progress when downloading remote specifiers. Closes #16860 --- cli/util/progress_bar/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/util/progress_bar/mod.rs') 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, } @@ -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()))); } } } -- cgit v1.2.3