Skip to content

Commit

Permalink
Ignore rustls deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Oct 24, 2023
1 parent 5f7063f commit 46ea8c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transport/smtp/client/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ impl TlsParametersBuilder {

#[cfg(feature = "rustls-tls")]
fn load_webpki_roots(store: &mut RootCertStore) {
// TODO: handle this in the rustls 0.22 upgrade
#[allow(deprecated)]
store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
ta.subject,
Expand Down

0 comments on commit 46ea8c4

Please sign in to comment.