File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ cfg_server! {
3030pub ( crate ) trait Http1Transaction {
3131 type Incoming ;
3232 type Outgoing : Default ;
33+ #[ cfg( feature = "tracing" ) ]
3334 const LOG : & ' static str ;
3435 fn parse ( bytes : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < Self :: Incoming > ;
3536 fn encode ( enc : Encode < ' _ , Self :: Outgoing > , dst : & mut Vec < u8 > ) -> crate :: Result < Encoder > ;
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ pub(crate) enum Server {}
104104impl Http1Transaction for Server {
105105 type Incoming = RequestLine ;
106106 type Outgoing = StatusCode ;
107+ #[ cfg( feature = "tracing" ) ]
107108 const LOG : & ' static str = "{role=server}" ;
108109
109110 fn parse ( buf : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < RequestLine > {
@@ -964,6 +965,7 @@ trait HeaderNameWriter {
964965impl Http1Transaction for Client {
965966 type Incoming = StatusCode ;
966967 type Outgoing = RequestLine ;
968+ #[ cfg( feature = "tracing" ) ]
967969 const LOG : & ' static str = "{role=client}" ;
968970
969971 fn parse ( buf : & mut BytesMut , ctx : ParseContext < ' _ > ) -> ParseResult < StatusCode > {
You can’t perform that action at this time.
0 commit comments