File tree Expand file tree Collapse file tree 6 files changed +0
-12
lines changed Expand file tree Collapse file tree 6 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -328,8 +328,6 @@ where
328
328
) -> _ ,
329
329
> = svc. oneshot ( req) . map ( |result| match result {
330
330
Ok ( res) => res. into_response ( ) ,
331
-
332
- #[ allow( unreachable_patterns) ]
333
331
Err ( err) => match err { } ,
334
332
} ) ;
335
333
Original file line number Diff line number Diff line change @@ -341,8 +341,6 @@ impl Next {
341
341
pub async fn run ( mut self , req : Request ) -> Response {
342
342
match self . inner . call ( req) . await {
343
343
Ok ( res) => res,
344
-
345
- #[ allow( unreachable_patterns) ]
346
344
Err ( err) => match err { } ,
347
345
}
348
346
}
Original file line number Diff line number Diff line change @@ -278,8 +278,6 @@ macro_rules! impl_service {
278
278
Ok ( res) => {
279
279
f( $( $ty, ) * res) . await . into_response( )
280
280
}
281
-
282
- #[ allow( unreachable_patterns) ]
283
281
Err ( err) => match err { }
284
282
}
285
283
} ) ;
Original file line number Diff line number Diff line change @@ -250,8 +250,6 @@ impl Future for InfallibleRouteFuture {
250
250
fn poll ( self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < Self :: Output > {
251
251
match futures_util:: ready!( self . project( ) . future. poll( cx) ) {
252
252
Ok ( response) => Poll :: Ready ( response) ,
253
-
254
- #[ allow( unreachable_patterns) ]
255
253
Err ( err) => match err { } ,
256
254
}
257
255
}
Original file line number Diff line number Diff line change 11
11
//!
12
12
//! [hyper-util]: https://crates.io/crates/hyper-util
13
13
14
- #![ allow( unreachable_patterns) ]
15
-
16
14
use std:: convert:: Infallible ;
17
15
use std:: net:: SocketAddr ;
18
16
Original file line number Diff line number Diff line change 3
3
//! ```not_rust
4
4
//! cargo run -p example-unix-domain-socket
5
5
//! ```
6
- #![ allow( unreachable_patterns) ]
7
-
8
6
#[ cfg( unix) ]
9
7
#[ tokio:: main]
10
8
async fn main ( ) {
You can’t perform that action at this time.
0 commit comments