File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 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 {
317317
318318impl fmt:: Debug for Incoming {
319319 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+ ) ) ]
320327 #[ derive( Debug ) ]
321328 struct Streaming ;
322329 #[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ pub(crate) use self::incoming::Sender;
3535pub ( crate ) use self :: length:: DecodedLength ;
3636
3737mod incoming;
38+ #[ cfg( all(
39+ any( feature = "http1" , feature = "http2" ) ,
40+ any( feature = "client" , feature = "server" )
41+ ) ) ]
3842mod length;
3943
4044fn _assert_send_sync ( ) {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ pub(super) enum Parse {
9898 #[ cfg( feature = "http1" ) ]
9999 Header ( Header ) ,
100100 #[ cfg( any( feature = "http1" , feature = "http2" ) ) ]
101+ #[ cfg_attr( feature = "http2" , allow( unused) ) ]
101102 TooLarge ,
102103 Status ,
103104 #[ 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 ;
22
33#[ cfg( feature = "client" ) ]
4- use std:: fmt:: Write ;
4+ use std:: fmt:: { self , Write as _ } ;
55#[ cfg( feature = "server" ) ]
66use std:: time:: Instant ;
77
@@ -1605,8 +1605,10 @@ fn write_headers_original_case(
16051605 }
16061606}
16071607
1608+ #[ cfg( feature = "client" ) ]
16081609struct FastWrite < ' a > ( & ' a mut Vec < u8 > ) ;
16091610
1611+ #[ cfg( feature = "client" ) ]
16101612impl < ' a > fmt:: Write for FastWrite < ' a > {
16111613 #[ inline]
16121614 fn write_str ( & mut self , s : & str ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments