diff --git a/src/utils/progress.rs b/src/utils/progress.rs index 3efd79b3f9..17fb3b0aa3 100644 --- a/src/utils/progress.rs +++ b/src/utils/progress.rs @@ -128,7 +128,6 @@ impl ProgressBar { #[derive(Clone)] pub enum ProgressBarMode { Disabled, - #[cfg(not(feature = "managed"))] Response, Shared((Arc, u64, usize, Arc>>)), } @@ -141,12 +140,6 @@ impl ProgressBarMode { /// Returns whether a progress bar should be displayed during download. pub fn response(&self) -> bool { - #[cfg(not(feature = "managed"))] - let rv = matches!(*self, ProgressBarMode::Response); - - #[cfg(feature = "managed")] - let rv = false; - - rv + matches!(*self, ProgressBarMode::Response) } }