Skip to content

Commit

Permalink
ProgressBar style() now takes a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchambers authored and djc committed Aug 31, 2022
1 parent b5de18c commit 81cca1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/progress_bar.rs
Expand Up @@ -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()
}

Expand Down

0 comments on commit 81cca1e

Please sign in to comment.