Skip to content

Commit 99653c1

Browse files
committed
small fixup for User::Service not found
1 parent a72cc2b commit 99653c1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,14 @@ impl Error {
500500
feature = "ffi"
501501
))]
502502
Kind::User(User::BodyWriteAborted) => "user body write aborted",
503-
#[cfg(any(
504-
all(any(feature = "client", feature = "server"), feature = "http1"),
505-
all(feature = "server", feature = "http2")
506-
))]
507503
#[cfg(all(any(feature = "client", feature = "server"), feature = "http2"))]
508504
Kind::User(User::InvalidConnectWithBody) => {
509505
"user sent CONNECT request with non-zero body"
510506
}
507+
#[cfg(any(
508+
all(any(feature = "client", feature = "server"), feature = "http1"),
509+
all(feature = "server", feature = "http2")
510+
))]
511511
Kind::User(User::Service) => "error from user's Service",
512512
#[cfg(any(feature = "http1", feature = "http2"))]
513513
#[cfg(feature = "server")]

0 commit comments

Comments
 (0)