Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indicatif"
version = "0.18.2"
version = "0.18.3"
edition = "2021"
rust-version = "1.71"
description = "A progress bar and cli reporting library for Rust"
Expand Down
9 changes: 2 additions & 7 deletions src/multi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,18 +501,13 @@ impl Debug for MultiStateMember {
/// [0/100] progress bar 2 => [0/100] progress bar 1
/// [0/100] progress bar 3 [0/100] progress bar 3
/// ```
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, Default)]
pub enum MultiProgressAlignment {
#[default]
Top,
Bottom,
}

impl Default for MultiProgressAlignment {
fn default() -> Self {
Self::Top
}
}

enum InsertLocation {
End,
Index(usize),
Expand Down
9 changes: 2 additions & 7 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ const MAX_BURST: u8 = 10;
/// [`ProgressBar`]: crate::ProgressBar
/// [`ProgressBarIter`]: crate::ProgressBarIter
/// [`ProgressBar::is_finished`]: crate::ProgressBar::is_finished
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub enum ProgressFinish {
/// Finishes the progress bar and leaves the current message
///
Expand All @@ -624,6 +624,7 @@ pub enum ProgressFinish {
/// Finishes the progress bar and completely clears it (this is the default)
///
/// Same behavior as calling [`ProgressBar::finish_and_clear()`](crate::ProgressBar::finish_and_clear).
#[default]
AndClear,
/// Finishes the progress bar and leaves the current message and progress
///
Expand All @@ -635,12 +636,6 @@ pub enum ProgressFinish {
AbandonWithMessage(Cow<'static, str>),
}

impl Default for ProgressFinish {
fn default() -> Self {
Self::AndClear
}
}

/// Get the appropriate dilution weight for Estimator data given the data's age (in seconds)
///
/// Whenever an update occurs, we will create a new estimate using a weight `w_i` like so:
Expand Down