Skip to content

Commit

Permalink
📝 fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Oct 17, 2023
1 parent 50bbf2d commit 8552fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benches/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn create_gen(b: &mut Bencher) {
b.iter(|| {
let g = Gn::<()>::new_scoped(|mut s| {
let mut i = 0;
while let Some(..) = s.yield_(i) {
while s.yield_(i).is_some() {
i += 1;
}
i
Expand Down

0 comments on commit 8552fc0

Please sign in to comment.