From b93c569189068db6d480d5a845d481dde2277800 Mon Sep 17 00:00:00 2001 From: Francisco Gouveia Date: Thu, 6 Aug 2026 16:53:51 +0100 Subject: [PATCH] chore: remove redundant casts --- benches/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benches/basic.rs b/benches/basic.rs index 67f2e5a..18169d5 100644 --- a/benches/basic.rs +++ b/benches/basic.rs @@ -308,7 +308,7 @@ fn test_mpsc_bounded(b: &mut Bencher, bound: usize, thread_num: usize for _ in 0..thread_num { let tx = tx.clone(); scope.spawn(move |_| { - for _ in 0..msgs / thread_num as usize { + for _ in 0..msgs / thread_num { tx.send(Default::default()); } }); @@ -316,7 +316,7 @@ fn test_mpsc_bounded(b: &mut Bencher, bound: usize, thread_num: usize scope.spawn(move |_| { // Remainder - for _ in 0..msgs - (msgs / thread_num as usize * thread_num) { + for _ in 0..msgs - (msgs / thread_num * thread_num) { tx.send(Default::default()); } });