Skip to content

Commit

Permalink
Merge pull request #1319 from charlespierce/update_indicatif
Browse files Browse the repository at this point in the history
Bump indicatif to 0.17.1
  • Loading branch information
charlespierce authored Sep 16, 2022
2 parents dab233a + fcbe432 commit 758f561
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 3 additions & 4 deletions 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 crates/volta-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cross-platform-docs = []

[dependencies]
term_size = "0.3.2"
indicatif = "0.16.2"
indicatif = "0.17.1"
console = ">=0.11.3, <1.0.0"
readext = "0.1.0"
serde_json = { version = "1.0.85", features = ["preserve_order"] }
Expand Down
6 changes: 4 additions & 2 deletions crates/volta-core/src/style.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! The view layer of Volta, with utilities for styling command-line output.
use std::borrow::Cow;
use std::error::Error;
use std::time::Duration;

use archive::Origin;
use cfg_if::cfg_if;
Expand Down Expand Up @@ -82,6 +83,7 @@ pub fn progress_bar(origin: Origin, details: &str, len: u64) -> ProgressBar {
"{{msg}} [{{bar:{}.cyan/blue}}] {{percent:>3}}%",
bar_width
))
.expect("template is valid")
.progress_chars("=> "),
);

Expand All @@ -102,7 +104,7 @@ cfg_if! {

spinner.set_message(message);
spinner.set_style(style);
spinner.enable_steady_tick(100);
spinner.enable_steady_tick(Duration::from_millis(100));

spinner
}
Expand All @@ -118,7 +120,7 @@ cfg_if! {

spinner.set_message(message);
spinner.set_style(ProgressStyle::default_spinner());
spinner.enable_steady_tick(50);
spinner.enable_steady_tick(Duration::from_millis(50));

spinner
}
Expand Down

0 comments on commit 758f561

Please sign in to comment.