diff --git a/benches/rt_multi_threaded.rs b/benches/rt_multi_threaded.rs index d333ebdaaae..3cb7e0bcf8c 100644 --- a/benches/rt_multi_threaded.rs +++ b/benches/rt_multi_threaded.rs @@ -111,7 +111,7 @@ fn rt_multi_spawn_many_remote_busy2(c: &mut Criterion) { let flag = Arc::new(AtomicBool::new(true)); // Spawn some tasks to keep the runtimes busy - for _ in 0..(NUM_WORKERS) { + for _ in 0..NUM_WORKERS { let flag = flag.clone(); fn iter(flag: Arc) { tokio::spawn(async { diff --git a/benches/signal.rs b/benches/signal.rs index af9fc1f3b97..082f67faef5 100644 --- a/benches/signal.rs +++ b/benches/signal.rs @@ -17,7 +17,7 @@ impl Future for Spinner { type Output = (); fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { - if self.count > 3 { + if self.count >= 3 { Poll::Ready(()) } else { self.count += 1;