diff options
author | Mikail Bagishov <bagishov.mikail@yandex.ru> | 2020-05-31 00:06:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 14:06:03 -0700 |
commit | db0d6d75b3b65812837c8561269e55eab00a74dd (patch) | |
tree | 3c454cdf64d205d7da95050a6bae0435eab749aa /tokio/src/macros | |
parent | f2f30d4cf6dfad9ed5b1e393b91bc2ed4e244483 (diff) |
chore: fix clippy errors (#2571)
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/select.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tokio/src/macros/select.rs b/tokio/src/macros/select.rs index 51b6fcd6..fc932bb9 100644 --- a/tokio/src/macros/select.rs +++ b/tokio/src/macros/select.rs @@ -359,8 +359,11 @@ macro_rules! select { let start = $crate::macros::support::thread_rng_n(BRANCHES); for i in 0..BRANCHES { - let branch = (start + i) % BRANCHES; - + let branch; + #[allow(clippy::modulo_one)] + { + branch = (start + i) % BRANCHES; + } match branch { $( $crate::count!( $($skip)* ) => { |