Skip to content

Commit

Permalink
fix(gateway): Fix rustls add_server_trust_anchors deprecation error
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Reidel <[email protected]>
  • Loading branch information
Gelbpunkt committed Sep 10, 2023
1 parent 15dba4e commit 78002c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twilight-gateway/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ mod r#impl {

#[cfg(feature = "rustls-webpki-roots")]
{
roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
roots.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
rustls_tls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
ta.spki,
Expand Down

0 comments on commit 78002c3

Please sign in to comment.