Skip to content

Commit e2f0bfd

Browse files
committed
fix incorrect conditional compilation
1 parent 99653c1 commit e2f0bfd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub(super) enum User {
132132
))]
133133
BodyWriteAborted,
134134
/// User tried to send a connect request with a nonzero body
135-
#[cfg(all(any(feature = "client", feature = "server"), feature = "http2"))]
135+
#[cfg(all(feature = "client", feature = "http2"))]
136136
InvalidConnectWithBody,
137137
/// Error from future of user's Service.
138138
#[cfg(any(
@@ -398,7 +398,7 @@ impl Error {
398398
Error::new_user(User::Body).with(cause)
399399
}
400400

401-
#[cfg(all(any(feature = "client", feature = "server"), feature = "http2"))]
401+
#[cfg(all(feature = "client", feature = "http2"))]
402402
pub(super) fn new_user_invalid_connect() -> Error {
403403
Error::new_user(User::InvalidConnectWithBody)
404404
}
@@ -500,7 +500,7 @@ impl Error {
500500
feature = "ffi"
501501
))]
502502
Kind::User(User::BodyWriteAborted) => "user body write aborted",
503-
#[cfg(all(any(feature = "client", feature = "server"), feature = "http2"))]
503+
#[cfg(all(feature = "client", feature = "http2"))]
504504
Kind::User(User::InvalidConnectWithBody) => {
505505
"user sent CONNECT request with non-zero body"
506506
}

0 commit comments

Comments
 (0)