Skip to content

Commit

Permalink
avoid accessing 'Default' trait directly
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored and djc committed Dec 11, 2022
1 parent bfeedb2 commit 64f3570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl MultiState {
ordering: vec![],
draw_target,
move_cursor: false,
alignment: Default::default(),
alignment: MultiProgressAlignment::default(),
orphan_lines: Vec::new(),
zombie_lines_count: 0,
}
Expand Down
2 changes: 1 addition & 1 deletion src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ impl WeakProgressBar {
///
/// [`upgrade`]: WeakProgressBar::upgrade
pub fn new() -> Self {
Default::default()
Self::default()
}

/// Attempts to upgrade the Weak pointer to a [`ProgressBar`], delaying dropping of the inner
Expand Down

0 comments on commit 64f3570

Please sign in to comment.