Remove unneeded macro usage (#2995)

Co-authored-by: Benjamin Sparks <b.sparks@alugha.com>
This commit is contained in:
Benjamin Sparks 2024-10-17 16:47:51 +02:00 committed by GitHub
parent 114369418d
commit c5a451d94b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 0 additions and 12 deletions

View file

@ -328,8 +328,6 @@ where
) -> _, ) -> _,
> = svc.oneshot(req).map(|result| match result { > = svc.oneshot(req).map(|result| match result {
Ok(res) => res.into_response(), Ok(res) => res.into_response(),
#[allow(unreachable_patterns)]
Err(err) => match err {}, Err(err) => match err {},
}); });

View file

@ -345,8 +345,6 @@ impl Next {
pub async fn run(mut self, req: Request) -> Response { pub async fn run(mut self, req: Request) -> Response {
match self.inner.call(req).await { match self.inner.call(req).await {
Ok(res) => res, Ok(res) => res,
#[allow(unreachable_patterns)]
Err(err) => match err {}, Err(err) => match err {},
} }
} }

View file

@ -278,8 +278,6 @@ macro_rules! impl_service {
Ok(res) => { Ok(res) => {
f($($ty,)* res).await.into_response() f($($ty,)* res).await.into_response()
} }
#[allow(unreachable_patterns)]
Err(err) => match err {} Err(err) => match err {}
} }
}); });

View file

@ -230,8 +230,6 @@ impl Future for InfallibleRouteFuture {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
match futures_util::ready!(self.project().future.poll(cx)) { match futures_util::ready!(self.project().future.poll(cx)) {
Ok(response) => Poll::Ready(response), Ok(response) => Poll::Ready(response),
#[allow(unreachable_patterns)]
Err(err) => match err {}, Err(err) => match err {},
} }
} }

View file

@ -11,8 +11,6 @@
//! //!
//! [hyper-util]: https://crates.io/crates/hyper-util //! [hyper-util]: https://crates.io/crates/hyper-util
#![allow(unreachable_patterns)]
use std::convert::Infallible; use std::convert::Infallible;
use std::net::SocketAddr; use std::net::SocketAddr;

View file

@ -3,8 +3,6 @@
//! ```not_rust //! ```not_rust
//! cargo run -p example-unix-domain-socket //! cargo run -p example-unix-domain-socket
//! ``` //! ```
#![allow(unreachable_patterns)]
#[cfg(unix)] #[cfg(unix)]
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {