From 1bf746500ceef0d60eff78f04fd574ebe071e989 Mon Sep 17 00:00:00 2001 From: barshaul Date: Wed, 2 Aug 2023 13:37:51 +0000 Subject: [PATCH] Changed deprecated method rustls::RootCertStore::add_server_trust_anchors to add_trust_anchors --- redis/src/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/src/connection.rs b/redis/src/connection.rs index 723260981f..90758a29fc 100644 --- a/redis/src/connection.rs +++ b/redis/src/connection.rs @@ -674,7 +674,7 @@ impl ActualConnection { pub(crate) fn create_rustls_config(insecure: bool) -> RedisResult { let mut root_store = RootCertStore::empty(); #[cfg(feature = "tls-rustls-webpki-roots")] - root_store.add_server_trust_anchors(TLS_SERVER_ROOTS.0.iter().map(|ta| { + root_store.add_trust_anchors(TLS_SERVER_ROOTS.0.iter().map(|ta| { OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki,