Skip to content

Commit

Permalink
refactor(lib): remove unused cfg condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Nov 16, 2023
1 parent dd6d81c commit b7e8f88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub(super) enum Parse {
#[cfg(feature = "http1")]
pub(super) enum Header {
Token,
#[cfg(all(any(feature = "client", feature = "server")))]
#[cfg(any(feature = "client", feature = "server"))]
ContentLengthInvalid,
#[cfg(feature = "server")]
TransferEncodingInvalid,
Expand Down
2 changes: 1 addition & 1 deletion src/proto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cfg_feature! {
pub(crate) mod h2;

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

0 comments on commit b7e8f88

Please sign in to comment.