File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -93,22 +93,23 @@ impl Default for Client {
93
93
) ) ]
94
94
connector. enforce_http ( false ) ;
95
95
96
- #[ cfg( all(
97
- feature = "native-tls" ,
98
- not( feature = "rustls-tls" ) ,
99
- not( feature = "rustls-tls-aws" )
100
- ) ) ]
96
+ #[ cfg( feature = "native-tls" ) ]
101
97
let connector = hyper_tls:: HttpsConnector :: new_with_connector ( connector) ;
102
98
103
- #[ cfg( all( feature = "rustls-tls" , not( feature = "rustls-tls-aws" ) ) ) ]
104
- let connector =
105
- prepare_hyper_rustls_connector ( connector, rustls:: crypto:: ring:: default_provider ( ) ) ;
106
- #[ cfg( all( feature = "rustls-tls-aws" , not( feature = "rustls-tls" ) ) ) ]
99
+ #[ cfg( all( feature = "rustls-tls-aws" , not( feature = "native-tls" ) ) ) ]
107
100
let connector = prepare_hyper_rustls_connector (
108
101
connector,
109
102
rustls:: crypto:: aws_lc_rs:: default_provider ( ) ,
110
103
) ;
111
104
105
+ #[ cfg( all(
106
+ feature = "rustls-tls" ,
107
+ not( feature = "rustls-tls-aws" ) ,
108
+ not( feature = "native-tls" )
109
+ ) ) ]
110
+ let connector =
111
+ prepare_hyper_rustls_connector ( connector, rustls:: crypto:: ring:: default_provider ( ) ) ;
112
+
112
113
let client = HyperClient :: builder ( TokioExecutor :: new ( ) )
113
114
. pool_idle_timeout ( POOL_IDLE_TIMEOUT )
114
115
. build ( connector) ;
You can’t perform that action at this time.
0 commit comments