From 1dc53ba902b0739cf2a2ddccfe1f551a1dda7e51 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Mon, 24 Jul 2023 15:30:51 -0400 Subject: [PATCH] chore: update indicatif to 0.17.x (#14) --- Cargo.toml | 2 +- src/utils.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1aacc45..5c4835b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/utils.rs b/src/utils.rs index b16902d..7023ee5 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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>(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);