Skip to content

Commit dd286fb

Browse files
committed
Re-order verifier options
1 parent ac87344 commit dd286fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/connector.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ mod tests {
220220
use crate::{ConfigBuilderExt, HttpsConnectorBuilder};
221221

222222
fn tls_config() -> rustls::ClientConfig {
223+
#[cfg(feature = "rustls-platform-verifier")]
224+
return rustls::ClientConfig::builder()
225+
.with_platform_verifier()
226+
.with_no_client_auth();
227+
223228
#[cfg(feature = "rustls-native-certs")]
224229
return rustls::ClientConfig::builder()
225230
.with_native_roots()
@@ -230,11 +235,6 @@ mod tests {
230235
return rustls::ClientConfig::builder()
231236
.with_webpki_roots()
232237
.with_no_client_auth();
233-
234-
#[cfg(feature = "rustls-platform-verifier")]
235-
return rustls::ClientConfig::builder()
236-
.with_platform_verifier()
237-
.with_no_client_auth();
238238
}
239239

240240
fn https_or_http_connector() -> HttpsConnector<HttpConnector> {

0 commit comments

Comments
 (0)