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 {
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 > {
You can’t perform that action at this time.
0 commit comments