File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
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" ) ) ]
You can’t perform that action at this time.
0 commit comments