Skip to content

Commit

Permalink
Re-order verifier options
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 20, 2024
1 parent ac87344 commit 985f323
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ mod tests {
use crate::{ConfigBuilderExt, HttpsConnectorBuilder};

fn tls_config() -> rustls::ClientConfig {
#[cfg(feature = "rustls-platform-verifier")]
return rustls::ClientConfig::builder()
.with_platform_verifier()
.with_no_client_auth();

#[cfg(feature = "rustls-native-certs")]
return rustls::ClientConfig::builder()
.with_native_roots()
Expand All @@ -230,11 +235,6 @@ mod tests {
return rustls::ClientConfig::builder()
.with_webpki_roots()
.with_no_client_auth();

#[cfg(feature = "rustls-platform-verifier")]
return rustls::ClientConfig::builder()
.with_platform_verifier()
.with_no_client_auth();
}

fn https_or_http_connector() -> HttpsConnector<HttpConnector> {
Expand Down

0 comments on commit 985f323

Please sign in to comment.