diff options
author | Blas Rodriguez Irizar <rodrigblas@gmail.com> | 2020-07-28 22:10:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 13:10:07 -0700 |
commit | 027351dd3a6da88d1b2ed9c687b96fa4ca8a7a6d (patch) | |
tree | bc21726fbd01c7cc503e058886fc675f90bc77db /tokio/src/macros | |
parent | ff6130da6583188b1ccebfd706eec7f5721976a3 (diff) |
macros: silence unreachable_code warning in select! (#2678)
Solves #2665 by adding #[allow(unreachable_code)] inside a branch
matching arm.
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/select.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tokio/src/macros/select.rs b/tokio/src/macros/select.rs index 52c8fdd3..6497a510 100644 --- a/tokio/src/macros/select.rs +++ b/tokio/src/macros/select.rs @@ -366,6 +366,7 @@ macro_rules! select { } match branch { $( + #[allow(unreachable_code)] $crate::count!( $($skip)* ) => { // First, if the future has previously been // disabled, do not poll it again. This is done |