chore: update CI to clippy 1.76 (#6334)

Co-authored-by: Rafael Bachmann <[email protected]>
This commit is contained in:
Patrick McGleenon
2024-02-10 10:45:40 +01:00
committed by GitHub
co-authored by Rafael Bachmann
parent 0fbde0e94b
commit e392c4ff1e
10 changed files with 15 additions and 9 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ impl SlowHddWriter {
) -> std::task::Poll<Result<(), std::io::Error>> {
// If we hit a service interval, the buffer can be cleared
let res = self.service_intervals.poll_tick(cx).map(|_| Ok(()));
if let Poll::Ready(_) = res {
if res.is_ready() {
self.buffer_used = 0;
}
res
@@ -123,7 +123,7 @@ impl AsyncWrite for SlowHddWriter {
cx: &mut std::task::Context<'_>,
bufs: &[std::io::IoSlice<'_>],
) -> std::task::Poll<Result<usize, std::io::Error>> {
let writeable = bufs.into_iter().fold(0, |acc, buf| acc + buf.len());
let writeable = bufs.iter().fold(0, |acc, buf| acc + buf.len());
self.write_bytes(cx, writeable)
}
+2 -2
View File
@@ -38,7 +38,7 @@ fn rt_multi_spawn_many_local(c: &mut Criterion) {
});
}
let _ = rx.recv().unwrap();
rx.recv().unwrap();
});
})
});
@@ -165,7 +165,7 @@ fn rt_multi_yield_many(c: &mut Criterion) {
}
for _ in 0..TASKS {
let _ = rx.recv().unwrap();
rx.recv().unwrap();
}
})
});
+1 -1
View File
@@ -37,7 +37,7 @@ fn contention_impl<const N_TASKS: usize>(g: &mut BenchmarkGroup<WallTime>) {
let mut rx = tx.subscribe();
let mut rng = rand::rngs::StdRng::seed_from_u64(n as u64);
rt.spawn(async move {
while let Ok(_) = rx.recv().await {
while (rx.recv().await).is_ok() {
let r = do_work(&mut rng);
let _ = black_box(r);
if wg.0.fetch_sub(1, Ordering::Relaxed) == 1 {