File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,13 @@ impl Body for Incoming {
317
317
318
318
impl fmt:: Debug for Incoming {
319
319
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
320
+ #[ cfg( any(
321
+ all(
322
+ any( feature = "http1" , feature = "http2" ) ,
323
+ any( feature = "client" , feature = "server" )
324
+ ) ,
325
+ feature = "ffi"
326
+ ) ) ]
320
327
#[ derive( Debug ) ]
321
328
struct Streaming ;
322
329
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ pub(crate) use self::incoming::Sender;
35
35
pub ( crate ) use self :: length:: DecodedLength ;
36
36
37
37
mod incoming;
38
+ #[ cfg( all(
39
+ any( feature = "http1" , feature = "http2" ) ,
40
+ any( feature = "client" , feature = "server" )
41
+ ) ) ]
38
42
mod length;
39
43
40
44
fn _assert_send_sync ( ) {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ pub(super) enum Parse {
98
98
#[ cfg( feature = "http1" ) ]
99
99
Header ( Header ) ,
100
100
#[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
101
+ #[ cfg_attr( feature = "http2" , allow( unused) ) ]
101
102
TooLarge ,
102
103
Status ,
103
104
#[ cfg( all( any( feature = "client" , feature = "server" ) , feature = "http1" ) ) ]
Original file line number Diff line number Diff line change 1
- use std:: { fmt , mem:: MaybeUninit } ;
1
+ use std:: mem:: MaybeUninit ;
2
2
3
3
#[ cfg( feature = "client" ) ]
4
- use std:: fmt:: Write ;
4
+ use std:: fmt:: { self , Write as _ } ;
5
5
#[ cfg( feature = "server" ) ]
6
6
use std:: time:: Instant ;
7
7
@@ -1605,8 +1605,10 @@ fn write_headers_original_case(
1605
1605
}
1606
1606
}
1607
1607
1608
+ #[ cfg( feature = "client" ) ]
1608
1609
struct FastWrite < ' a > ( & ' a mut Vec < u8 > ) ;
1609
1610
1611
+ #[ cfg( feature = "client" ) ]
1610
1612
impl < ' a > fmt:: Write for FastWrite < ' a > {
1611
1613
#[ inline]
1612
1614
fn write_str ( & mut self , s : & str ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments