From 881cb1bb904848cdd6b489f0650bf817ea3e169d Mon Sep 17 00:00:00 2001 From: Kushagra Udai Date: Sat, 20 Jul 2024 12:26:29 -0700 Subject: [PATCH] Rerun --- Cargo.toml | 2 +- src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 92b616f..b315332 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,4 +36,4 @@ tokio = { version = "1", features = ["full"] } ureq = { version = "2", features = ["json"] } [dev-dependencies] -rustls = { version = "0.23", features = ["ring"] } \ No newline at end of file +rustls = { version = "0.23", features = ["ring"] } diff --git a/src/lib.rs b/src/lib.rs index 7d75ff9..229d25e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -949,6 +949,7 @@ fn record_duration_metric_if_enabled(_method: &Method, _function: &str, _duratio mod tests { use std::time::Duration; + use rustls::crypto::ring::default_provider; use tokio::time::sleep; use super::*; @@ -1334,7 +1335,7 @@ mod tests { } fn get_client() -> Consul { - rustls::crypto::ring::default_provider() + default_provider() .install_default() .expect("Failed to install rustls crypto provider"); let conf: Config = Config::from_env();