mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-28 07:09:40 +02:00
Update indicatif dependency
This commit is contained in:
parent
9813e417cf
commit
dea04a210c
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -842,9 +842,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "indicatif"
|
||||
version = "0.15.0"
|
||||
version = "0.16.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7baab56125e25686df467fe470785512329883aab42696d661247aca2a2896e4"
|
||||
checksum = "2d207dc617c7a380ab07ff572a6e52fa202a2a8f355860ac9c38e23f8196be1b"
|
||||
dependencies = [
|
||||
"console",
|
||||
"lazy_static 1.4.0",
|
||||
@ -1140,9 +1140,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "number_prefix"
|
||||
version = "0.3.0"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "17b02fc0ff9a9e4b35b3342880f48e896ebf69f2967921fe8646bf5b7125956a"
|
||||
checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
|
||||
|
||||
[[package]]
|
||||
name = "numerals"
|
||||
|
@ -67,7 +67,7 @@ textwrap = { version = "0.12", optional = true }
|
||||
serde = { version = "1", optional = true }
|
||||
serde_json = { version = "1", optional = true }
|
||||
serde_derive = { version = "1", optional = true }
|
||||
indicatif = { version = "0.15", optional = true }
|
||||
indicatif = { version = "0.16", optional = true }
|
||||
console = { version = "0.15", optional = true }
|
||||
caribon = { version = "0.8", optional = true }
|
||||
clap = { version = "3", optional = true }
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2017 Élisabeth HENRY.
|
||||
// Copyright (C) 2017-2022 Élisabeth HENRY.
|
||||
//
|
||||
// This file is part of Crowbook.
|
||||
//
|
||||
@ -124,7 +124,7 @@ impl Book {
|
||||
|
||||
match bar {
|
||||
Crowbar::Second => pb.finish_and_clear(),
|
||||
_ => pb.finish_with_message(msg),
|
||||
_ => pb.finish_with_message(msg.to_owned()),
|
||||
};
|
||||
}
|
||||
|
||||
@ -133,7 +133,7 @@ impl Book {
|
||||
if let Some(ref multibar) = self.bars.multibar {
|
||||
let bar = multibar.add(ProgressBar::new(len));
|
||||
self.bar_set_style(Crowbar::Second, CrowbarState::Running);
|
||||
bar.set_message(msg);
|
||||
bar.set_message(msg.to_owned());
|
||||
self.bars.secondbar = Some(bar);
|
||||
}
|
||||
}
|
||||
@ -149,13 +149,13 @@ impl Book {
|
||||
pub fn add_spinner_to_multibar(&mut self, key: &str) -> usize {
|
||||
if let Some(ref multibar) = self.bars.multibar {
|
||||
if let Some(ref mainbar) = self.bars.mainbar {
|
||||
mainbar.set_message(&lformat!("Rendering..."));
|
||||
mainbar.set_message(lformat!("Rendering..."));
|
||||
}
|
||||
|
||||
let bar = multibar.add(ProgressBar::new_spinner());
|
||||
bar.enable_steady_tick(200);
|
||||
bar.set_message(&lformat!("waiting..."));
|
||||
bar.set_prefix(&format!("{}:", key));
|
||||
bar.set_message(lformat!("waiting..."));
|
||||
bar.set_prefix(format!("{}:", key));
|
||||
let i = self.bars.spinners.len();
|
||||
self.bars.spinners.push(bar);
|
||||
self.bar_set_style(Crowbar::Spinner(i), CrowbarState::Running);
|
||||
@ -190,7 +190,7 @@ impl Book {
|
||||
}
|
||||
}
|
||||
};
|
||||
bar.set_message(msg);
|
||||
bar.set_message(msg.to_owned());
|
||||
}
|
||||
|
||||
/// Sets the style of a bar
|
||||
|
Loading…
Reference in New Issue
Block a user