File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ cfg-if = "1.0.0"
4242
4343# h1_client
4444async-h1 = { version = " 2.0.0" , optional = true }
45- async-std = { version = " 1.6 .0" , default-features = false , optional = true }
45+ async-std = { version = " 1.13 .0" , default-features = false , optional = true }
4646async-native-tls = { version = " 0.3.1" , optional = true }
4747dashmap = { version = " 5.3.4" , optional = true }
4848deadpool = { version = " 0.7.0" , optional = true }
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl H1Client {
104104 note = "This function is misnamed. Prefer `Config::max_connections_per_host` instead."
105105 ) ]
106106 pub fn with_max_connections ( max : usize ) -> Self {
107- #[ cfg( features = "h1_client" ) ]
107+ #[ cfg( feature = "h1_client" ) ]
108108 assert ! ( max > 0 , "max_connections_per_host with h1_client must be greater than zero or it will deadlock!" ) ;
109109
110110 let config = Config {
@@ -269,7 +269,7 @@ impl HttpClient for H1Client {
269269 ///
270270 /// Config options may not impact existing connections.
271271 fn set_config ( & mut self , config : Config ) -> http_types:: Result < ( ) > {
272- #[ cfg( features = "h1_client" ) ]
272+ #[ cfg( feature = "h1_client" ) ]
273273 assert ! ( config. max_connections_per_host > 0 , "max_connections_per_host with h1_client must be greater than zero or it will deadlock!" ) ;
274274
275275 self . config = Arc :: new ( config) ;
@@ -287,7 +287,7 @@ impl TryFrom<Config> for H1Client {
287287 type Error = Infallible ;
288288
289289 fn try_from ( config : Config ) -> Result < Self , Self :: Error > {
290- #[ cfg( features = "h1_client" ) ]
290+ #[ cfg( feature = "h1_client" ) ]
291291 assert ! ( config. max_connections_per_host > 0 , "max_connections_per_host with h1_client must be greater than zero or it will deadlock!" ) ;
292292
293293 Ok ( Self {
You can’t perform that action at this time.
0 commit comments