diff --git a/Cargo.toml b/Cargo.toml index 3eb5dd8..c242119 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,6 +36,6 @@ harness = false [dependencies] subtle = "2.2.1" crossbeam-utils = "0.7" -metrics = "0.13.0-alpha.8" +metrics = "=0.13.0-alpha.11" num_cpus = "1.13" rand = "0.7" diff --git a/src/model.rs b/src/model.rs index 1bbdc8c..940b73a 100644 --- a/src/model.rs +++ b/src/model.rs @@ -49,13 +49,13 @@ impl fmt::Display for ModelRecorder { counters.sort_by(|(k1, _), (k2, _)| { let key1 = ( - k1.name(), + k1.name().to_string(), k1.labels() .map(|l| (l.key(), l.value())) .collect::>(), ); let key2 = ( - k2.name(), + k2.name().to_string(), k2.labels() .map(|l| (l.key(), l.value())) .collect::>(),