diff --git a/src/progress_bar.rs b/src/progress_bar.rs index 5ada87dd..d33b071e 100644 --- a/src/progress_bar.rs +++ b/src/progress_bar.rs @@ -59,7 +59,7 @@ impl ProgressBar { } /// Get a clone of the current progress bar style. - pub fn style(self) -> ProgressStyle { + pub fn style(&self) -> ProgressStyle { self.state().style.clone() }