diff --git a/glommio/benches/spsc_queue.rs b/glommio/benches/spsc_queue.rs index 4a01f1539..cb79f0b21 100644 --- a/glommio/benches/spsc_queue.rs +++ b/glommio/benches/spsc_queue.rs @@ -7,11 +7,7 @@ fn test_spsc(capacity: usize) { let consumer = std::thread::spawn(move || { let t = Instant::now(); for _ in 0..RUNS { - let mut opt: Option; - while { - opt = receiver.try_pop(); - opt.is_none() - } {} + while receiver.try_pop().is_none() {} } println!( "cost of receiving {:#?}, capacity {}",