summaryrefslogtreecommitdiffstats
path: root/src/commands/endpoint.rs
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-05-10 15:18:10 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-05-11 09:13:36 +0200
commit6ceccb679d9c2d19389c6c6eef792d8db9086f31 (patch)
treebb0936568c9cba578ebbb8ef34093b30ba134bf1 /src/commands/endpoint.rs
parent1ebfa387fa5d47e3200b990f63f55bbe36adeff1 (diff)
Update dependency: indicatif 0.15 -> 0.16
Because the interfaces of indicatif have changed, this PR changes a lot of calls in the codebase. (Yay, moving all the things!) Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/commands/endpoint.rs')
-rw-r--r--src/commands/endpoint.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs
index 051d4fe..f7f57b1 100644
--- a/src/commands/endpoint.rs
+++ b/src/commands/endpoint.rs
@@ -70,7 +70,7 @@ async fn ping(endpoint_names: Vec<EndpointName>,
.map(|endpoint| {
let bar = multibar.add(progress_generator.bar());
bar.set_length(n_pings);
- bar.set_message(&format!("Pinging {}", endpoint.name()));
+ bar.set_message(format!("Pinging {}", endpoint.name()));
async move {
for i in 1..(n_pings + 1) {
@@ -78,14 +78,14 @@ async fn ping(endpoint_names: Vec<EndpointName>,
let r = endpoint.ping().await;
bar.inc(1);
if let Err(e) = r {
- bar.finish_with_message(&format!("Pinging {} failed", endpoint.name()));
+ bar.finish_with_message(format!("Pinging {} failed", endpoint.name()));
return Err(e)
}
tokio::time::sleep(tokio::time::Duration::from_secs(sleep)).await;
}
- bar.finish_with_message(&format!("Pinging {} successful", endpoint.name()));
+ bar.finish_with_message(format!("Pinging {} successful", endpoint.name()));
Ok(())
}
})