From 8902b5b766ed07dfc10996644bfd5cdc1b371d57 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 30 Apr 2021 10:13:10 +0200 Subject: [PATCH] Upgrade indicatif to 0.16 --- instant-distance/Cargo.toml | 2 +- instant-distance/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/instant-distance/Cargo.toml b/instant-distance/Cargo.toml index 0afa760..becfe16 100644 --- a/instant-distance/Cargo.toml +++ b/instant-distance/Cargo.toml @@ -15,7 +15,7 @@ readme = "../README.md" with-serde = ["serde", "serde-big-array"] [dependencies] -indicatif = { version = "0.15", optional = true } +indicatif = { version = "0.16", optional = true } num_cpus = "1.13" ordered-float = "2.0" parking_lot = "0.11" diff --git a/instant-distance/src/lib.rs b/instant-distance/src/lib.rs index e66746a..7b7c054 100644 --- a/instant-distance/src/lib.rs +++ b/instant-distance/src/lib.rs @@ -245,7 +245,7 @@ where let num = if layer.is_zero() { M * 2 } else { M }; #[cfg(feature = "indicatif")] if let Some(bar) = &progress { - bar.set_message(&format!("Building index (layer {})", layer.0)); + bar.set_message(format!("Building index (layer {})", layer.0)); } let end = range.end;