Skip to content

Commit

Permalink
update to rust 1.56
Browse files Browse the repository at this point in the history
  • Loading branch information
HippoBaro committed Nov 4, 2021
1 parent ce7260e commit 15e9291
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions glommio/benches/spsc_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64>;
while {
opt = receiver.try_pop();
opt.is_none()
} {}
while receiver.try_pop().is_none() {}
}
println!(
"cost of receiving {:#?}, capacity {}",
Expand Down

0 comments on commit 15e9291

Please sign in to comment.