File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,11 @@ mod tests {
220
220
use crate :: { ConfigBuilderExt , HttpsConnectorBuilder } ;
221
221
222
222
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
+
223
228
#[ cfg( feature = "rustls-native-certs" ) ]
224
229
return rustls:: ClientConfig :: builder ( )
225
230
. with_native_roots ( )
@@ -230,11 +235,6 @@ mod tests {
230
235
return rustls:: ClientConfig :: builder ( )
231
236
. with_webpki_roots ( )
232
237
. 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 ( ) ;
238
238
}
239
239
240
240
fn https_or_http_connector ( ) -> HttpsConnector < HttpConnector > {
You can’t perform that action at this time.
0 commit comments