Skip to content

Commit b7e8f88

Browse files
tottotoseanmonstar
authored andcommitted
refactor(lib): remove unused cfg condition
1 parent dd6d81c commit b7e8f88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub(super) enum Parse {
104104
#[cfg(feature = "http1")]
105105
pub(super) enum Header {
106106
Token,
107-
#[cfg(all(any(feature = "client", feature = "server")))]
107+
#[cfg(any(feature = "client", feature = "server"))]
108108
ContentLengthInvalid,
109109
#[cfg(feature = "server")]
110110
TransferEncodingInvalid,

src/proto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cfg_feature! {
1717
pub(crate) mod h2;
1818

1919
/// An Incoming Message head. Includes request/status line, and headers.
20-
#[cfg(any(feature = "http1"))]
20+
#[cfg(feature = "http1")]
2121
#[derive(Debug, Default)]
2222
pub(crate) struct MessageHead<S> {
2323
/// HTTP version of the message.

0 commit comments

Comments
 (0)