diff --git a/metrics-benchmark/Cargo.toml b/metrics-benchmark/Cargo.toml index e10cba61..dceec935 100644 --- a/metrics-benchmark/Cargo.toml +++ b/metrics-benchmark/Cargo.toml @@ -3,15 +3,15 @@ name = "metrics-benchmark" version = "0.1.1-alpha.5" authors = ["Toby Lawrence "] edition = "2018" -rust-version = "1.56.1" +rust-version = "1.61.0" publish = false [dependencies] log = "0.4" -pretty_env_logger = "0.4" +pretty_env_logger = "0.5" getopts = "0.2" hdrhistogram = { version = "7.2", default-features = false } quanta = "0.11" portable-atomic = { version = "1", default-features = false, features = ["fallback"] } -metrics = { version = "^0.21", path = "../metrics" } -metrics-util = { version = "^0.15", path = "../metrics-util" } +metrics = { version = "0.21", path = "../metrics" } +metrics-util = { version = "0.15", path = "../metrics-util" } diff --git a/metrics-exporter-prometheus/src/builder.rs b/metrics-exporter-prometheus/src/builder.rs index 05715018..53824140 100644 --- a/metrics-exporter-prometheus/src/builder.rs +++ b/metrics-exporter-prometheus/src/builder.rs @@ -461,9 +461,7 @@ impl PrometheusBuilder { ExporterConfig::PushGateway { endpoint, interval, username, password } => { let exporter = async move { let client = Client::new(); - let auth = username - .as_ref() - .map(|name| basic_auth(name, password.as_ref().map(|x| &**x))); + let auth = username.as_ref().map(|name| basic_auth(name, password.as_deref())); loop { // Sleep for `interval` amount of time, and then do a push. diff --git a/metrics-exporter-tcp/Cargo.toml b/metrics-exporter-tcp/Cargo.toml index 86ee4b45..391849db 100644 --- a/metrics-exporter-tcp/Cargo.toml +++ b/metrics-exporter-tcp/Cargo.toml @@ -29,7 +29,7 @@ tracing = { version = "0.1", default-features = false, features = ["attributes"] prost-build = "0.11" [dev-dependencies] -quanta = "0.10.0" +quanta = "0.11" tracing = "0.1" tracing-subscriber = "0.3" rand = "0.8" diff --git a/metrics-util/CHANGELOG.md b/metrics-util/CHANGELOG.md index 2ce3c741..122e654c 100644 --- a/metrics-util/CHANGELOG.md +++ b/metrics-util/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Update `aho-corasick` to `1.0`. +- Updated `hashbrown` to `0.14`. ## [0.15.0] - 2023-04-16 diff --git a/metrics-util/Cargo.toml b/metrics-util/Cargo.toml index 50eef3b4..7c91de53 100644 --- a/metrics-util/Cargo.toml +++ b/metrics-util/Cargo.toml @@ -58,7 +58,7 @@ radix_trie = { version = "0.2", default-features = false, optional = true } ordered-float = { version = "3.4", default-features = false, optional = true } num_cpus = { version = "1", default-features = false, optional = true } ahash = { version = "0.8", default-features = false, optional = true } -hashbrown = { version = "0.13", default-features = false, optional = true, features = ["ahash"] } +hashbrown = { version = "0.14", default-features = false, optional = true, features = ["ahash"] } [dev-dependencies] approx = "0.5"