Skip to content

Commit 16a3a19

Browse files
committed
Update tokio-rustls dev-dep to 0.24
1 parent 3e69db6 commit 16a3a19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ serde_json = "1.0.0"
6868
# Examples
6969
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "net"] }
7070
env_logger = { version = "0.9", default-features = false }
71-
tokio-rustls = "0.23.2"
71+
tokio-rustls = "0.24"
7272
webpki-roots = "0.25"
7373

7474
[package.metadata.docs.rs]

examples/akamai.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub async fn main() -> Result<(), Box<dyn Error>> {
1717

1818
let tls_client_config = std::sync::Arc::new({
1919
let mut root_store = RootCertStore::empty();
20-
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
20+
root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
2121
OwnedTrustAnchor::from_subject_spki_name_constraints(
2222
ta.subject,
2323
ta.spki,

0 commit comments

Comments
 (0)