Skip to content

Commit

Permalink
Changed deprecated method rustls::RootCertStore::add_server_trust_anc…
Browse files Browse the repository at this point in the history
…hors to add_trust_anchors
  • Loading branch information
barshaul committed Aug 2, 2023
1 parent 7a833ea commit 1bf7465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ impl ActualConnection {
pub(crate) fn create_rustls_config(insecure: bool) -> RedisResult<rustls::ClientConfig> {
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,
Expand Down

0 comments on commit 1bf7465

Please sign in to comment.