mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +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 {
|
> = 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 {},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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 {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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 {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue