Skip to content

Commit

Permalink
chore: update indicatif to 0.17.x (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs authored Jul 24, 2023
1 parent 5c593a1 commit 1dc53ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ askama = "0.10"
color-eyre = "0.5"
console = "0.14.0"
happylog = { version = "0.2.0", features = ["structopt"] }
indicatif = "0.16.0"
indicatif = "0.17.0"
itertools = "0.9.0"
log = "0.4.11"
mime_guess = "2.0.3"
Expand Down
3 changes: 2 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ use itertools::Itertools;
use std::collections::HashMap;
use std::fmt;
use std::fmt::Display;
use std::time::Duration;

pub(crate) fn with_progress<T, F: FnMut() -> T>(msg: &'static str, mut f: F) -> T {
let bar = ProgressBar::new_spinner();
bar.set_message(msg);
bar.enable_steady_tick(16);
bar.enable_steady_tick(Duration::new(16, 0));

let _state = happylog::set_progress(&bar);

Expand Down

0 comments on commit 1dc53ba

Please sign in to comment.