@@ -21,24 +21,24 @@ pub use config::Config;
21
21
#[ cfg( not( feature = "unstable-config" ) ) ]
22
22
type Config = ( ) ;
23
23
24
- #[ cfg_attr( feature = "docs" , doc( cfg( curl_client) ) ) ]
24
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " curl_client" ) ) ) ]
25
25
#[ cfg( all( feature = "curl_client" , not( target_arch = "wasm32" ) ) ) ]
26
26
pub mod isahc;
27
27
28
- #[ cfg_attr( feature = "docs" , doc( cfg( wasm_client) ) ) ]
28
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " wasm_client" ) ) ) ]
29
29
#[ cfg( all( feature = "wasm_client" , target_arch = "wasm32" ) ) ]
30
30
pub mod wasm;
31
31
32
- #[ cfg_attr( feature = "docs" , doc( cfg( native_client) ) ) ]
32
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " native_client" ) ) ) ]
33
33
#[ cfg( any( feature = "curl_client" , feature = "wasm_client" ) ) ]
34
34
pub mod native;
35
35
36
- #[ cfg_attr( feature = "docs" , doc( cfg( h1_client) ) ) ]
37
- #[ cfg_attr( feature = "docs" , doc( cfg( default ) ) ) ]
36
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " h1_client" ) ) ) ]
37
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " default" ) ) ) ]
38
38
#[ cfg( any( feature = "h1_client" , feature = "h1_client_rustls" ) ) ]
39
39
pub mod h1;
40
40
41
- #[ cfg_attr( feature = "docs" , doc( cfg( hyper_client) ) ) ]
41
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = " hyper_client" ) ) ) ]
42
42
#[ cfg( feature = "hyper_client" ) ]
43
43
pub mod hyper;
44
44
@@ -106,11 +106,13 @@ impl HttpClient for Box<dyn HttpClient> {
106
106
self . as_ref ( ) . send ( req) . await
107
107
}
108
108
109
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = "unstable-config" ) ) ) ]
109
110
#[ cfg( feature = "unstable-config" ) ]
110
111
fn set_config ( & mut self , config : Config ) -> http_types:: Result < ( ) > {
111
112
self . as_mut ( ) . set_config ( config)
112
113
}
113
114
115
+ #[ cfg_attr( feature = "docs" , doc( cfg( feature = "unstable-config" ) ) ) ]
114
116
#[ cfg( feature = "unstable-config" ) ]
115
117
fn config ( & self ) -> & Config {
116
118
self . as_ref ( ) . config ( )
0 commit comments