Skip to content

Commit

Permalink
Fix rustls-webpki feature
Browse files Browse the repository at this point in the history
#1965 modified the initialization
code for HttpClient in a way that prevents it from building with the
`rustls-webpki` feature enabled. Fix that, so that building with
rustls-webpki works again.
  • Loading branch information
joshtriplett committed Apr 26, 2022
1 parent 0df121f commit f5106ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rusoto/core/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl HttpClient {
#[cfg(feature = "native-tls")]
let connector = HttpsConnector::new();

#[cfg(feature = "rustls")]
#[cfg(any(feature = "rustls", feature = "rustls-webpki"))]
let connector = {
let builder = crate::tls::HttpsConnectorBuilder::new();

Expand All @@ -243,7 +243,7 @@ impl HttpClient {
#[cfg(feature = "native-tls")]
let connector = HttpsConnector::new();

#[cfg(feature = "rustls")]
#[cfg(any(feature = "rustls", feature = "rustls-webpki"))]
let connector = {
let builder = crate::tls::HttpsConnectorBuilder::new();

Expand Down

0 comments on commit f5106ea

Please sign in to comment.