Skip to content

Commit

Permalink
Update indicatif to 0.17.0-rc.5 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Feb 28, 2022
1 parent d5429aa commit f3dc0b6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 57 deletions.
95 changes: 41 additions & 54 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ flate2 = { version = "1.0", default-features = false, features = [
"rust_backend",
] }
# Pretty progress bars
indicatif = "0.17.0-beta.1"
indicatif = "0.17.0-rc.5"
# Decoding of MSI installer packages
msi = "0.4"
parking_lot = "0.12"
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ fn main() -> Result<(), Error> {
ia::ProgressBar::with_draw_target(0, draw_target.into()).with_prefix(prefix).with_style(
ia::ProgressStyle::default_bar()
.template("{spinner:.green} {prefix:.bold} [{elapsed}] {wide_bar:.green} {bytes}/{total_bytes} {msg}")
.unwrap()
.progress_chars("█▇▆▅▄▃▂▁ "),
),
);
Expand Down Expand Up @@ -333,7 +334,7 @@ fn load_manifest(
ia::ProgressStyle::default_bar()
.template(
"{spinner:.green} {prefix:.bold} [{elapsed}] {wide_bar:.green} {bytes}/{total_bytes} {msg}",
)
)?
.progress_chars("█▇▆▅▄▃▂▁ "),
);
manifest_pb.set_prefix("Manifest");
Expand Down
2 changes: 1 addition & 1 deletion src/splat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ pub(crate) fn finalize_splat(
indicatif::ProgressStyle::default_bar()
.template(
"{spinner:.green} {prefix:.bold} [{elapsed}] {wide_bar:.green} {pos}/{len}",
)
)?
.progress_chars("█▇▆▅▄▃▂▁ "),
);

Expand Down

0 comments on commit f3dc0b6

Please sign in to comment.