Skip to content

Commit 85875b9

Browse files
committed
style: fix clippy warnings.
1 parent f0ad091 commit 85875b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

parser/src/ast/dfs.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ mod tests {
520520

521521
let mut contexts = dfs.contexts();
522522
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
523-
assert!(matches!(contexts.next(), None));
523+
assert!(contexts.next().is_none());
524524
drop(contexts);
525525

526526
// enter `1`
@@ -535,7 +535,7 @@ mod tests {
535535
Some(DFSContext::Quantifier(Expr::ForOf(_)))
536536
));
537537
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
538-
assert!(matches!(contexts.next(), None));
538+
assert!(contexts.next().is_none());
539539
drop(contexts);
540540

541541
// leave `1`
@@ -546,7 +546,7 @@ mod tests {
546546

547547
let mut contexts = dfs.contexts();
548548
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
549-
assert!(matches!(contexts.next(), None));
549+
assert!(contexts.next().is_none());
550550
drop(contexts);
551551

552552
// enter `with i = 1 : ( i == 1 )`
@@ -558,7 +558,7 @@ mod tests {
558558
Some(DFSContext::Body(Expr::ForOf(_)))
559559
));
560560
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
561-
assert!(matches!(contexts.next(), None));
561+
assert!(contexts.next().is_none());
562562
drop(contexts);
563563

564564
// enter `1`
@@ -585,7 +585,7 @@ mod tests {
585585
Some(DFSContext::Body(Expr::ForOf(_)))
586586
));
587587
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
588-
assert!(matches!(contexts.next(), None));
588+
assert!(contexts.next().is_none());
589589
drop(contexts);
590590

591591
// enter `i`
@@ -605,7 +605,7 @@ mod tests {
605605
Some(DFSContext::Body(Expr::ForOf(_)))
606606
));
607607
assert!(matches!(contexts.next(), Some(DFSContext::Root)));
608-
assert!(matches!(contexts.next(), None));
608+
assert!(contexts.next().is_none());
609609
drop(contexts);
610610

611611
// leave `i`

0 commit comments

Comments
 (0)