diff options
Diffstat (limited to 'vendor/h2/examples/akamai.rs')
-rw-r--r-- | vendor/h2/examples/akamai.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/h2/examples/akamai.rs b/vendor/h2/examples/akamai.rs index 1d0b17baf..788bf3005 100644 --- a/vendor/h2/examples/akamai.rs +++ b/vendor/h2/examples/akamai.rs @@ -17,7 +17,7 @@ pub async fn main() -> Result<(), Box<dyn Error>> { let tls_client_config = std::sync::Arc::new({ let mut root_store = RootCertStore::empty(); - root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { + root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki, |