Bump indicatif from 0.15.0 to 0.16.2 (#17628)

* Bump indicatif from 0.15.0 to 0.16.2

Bumps [indicatif](https://github.com/mitsuhiko/indicatif) from 0.15.0 to 0.16.2.
- [Release notes](https://github.com/mitsuhiko/indicatif/releases)
- [Commits](https://github.com/mitsuhiko/indicatif/compare/0.15.0...0.16.2)

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

* Fix message types

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
dependabot[bot]
2021-06-01 17:38:02 +00:00
committed by GitHub
parent a0d721c6bd
commit a43c29e858
18 changed files with 52 additions and 56 deletions

View File

@@ -5,7 +5,7 @@ use {
console::style,
indicatif::{ProgressDrawTarget, ProgressStyle},
log::*,
std::{env, process::exit, thread::JoinHandle},
std::{borrow::Cow, env, fmt::Display, process::exit, thread::JoinHandle},
};
pub mod admin_rpc_service;
@@ -117,7 +117,7 @@ pub struct ProgressBar {
}
impl ProgressBar {
pub fn set_message(&self, msg: &str) {
pub fn set_message<T: Into<Cow<'static, str>> + Display>(&self, msg: T) {
if self.is_term {
self.progress_bar.set_message(msg);
} else {
@@ -125,7 +125,7 @@ impl ProgressBar {
}
}
pub fn abandon_with_message(&self, msg: &str) {
pub fn abandon_with_message<T: Into<Cow<'static, str>> + Display>(&self, msg: T) {
if self.is_term {
self.progress_bar.abandon_with_message(msg);
} else {