Skip to content

Commit

Permalink
Fix use of deprecated API
Browse files Browse the repository at this point in the history
Recent comments tested for functionalities
  • Loading branch information
myzhang1029 committed Sep 2, 2023
1 parent 726bcbf commit 485fa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls/rustls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn get_system_certs() -> Result<RootCertStore, Error> {
#[allow(clippy::unnecessary_wraps)]
fn get_system_certs() -> Result<RootCertStore, Error> {
let mut roots = RootCertStore::empty();
roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
roots.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit 485fa90

Please sign in to comment.