mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-24 08:06:36 +01:00
Remove unneeded macro usage (#2995)
Co-authored-by: Benjamin Sparks <b.sparks@alugha.com>
This commit is contained in:
parent
114369418d
commit
c5a451d94b
6 changed files with 0 additions and 12 deletions
|
@ -328,8 +328,6 @@ where
|
|||
) -> _,
|
||||
> = svc.oneshot(req).map(|result| match result {
|
||||
Ok(res) => res.into_response(),
|
||||
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(err) => match err {},
|
||||
});
|
||||
|
||||
|
|
|
@ -345,8 +345,6 @@ impl Next {
|
|||
pub async fn run(mut self, req: Request) -> Response {
|
||||
match self.inner.call(req).await {
|
||||
Ok(res) => res,
|
||||
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(err) => match err {},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -278,8 +278,6 @@ macro_rules! impl_service {
|
|||
Ok(res) => {
|
||||
f($($ty,)* res).await.into_response()
|
||||
}
|
||||
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(err) => match err {}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -230,8 +230,6 @@ impl Future for InfallibleRouteFuture {
|
|||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||
match futures_util::ready!(self.project().future.poll(cx)) {
|
||||
Ok(response) => Poll::Ready(response),
|
||||
|
||||
#[allow(unreachable_patterns)]
|
||||
Err(err) => match err {},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
//!
|
||||
//! [hyper-util]: https://crates.io/crates/hyper-util
|
||||
|
||||
#![allow(unreachable_patterns)]
|
||||
|
||||
use std::convert::Infallible;
|
||||
use std::net::SocketAddr;
|
||||
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
//! ```not_rust
|
||||
//! cargo run -p example-unix-domain-socket
|
||||
//! ```
|
||||
#![allow(unreachable_patterns)]
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
|
Loading…
Reference in a new issue