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();