Skip to content

Commit c9e0a5e

Browse files
committed
Use if let for non-looping while let.
1 parent 1435b20 commit c9e0a5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_llvm.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ fn parse_cases<'a, I: Iterator<Item = &'a str>>(i: I) -> impl Iterator<Item = Te
4545
Some(LineRule::CheckNotInvalid) => {
4646
not_invalid = true;
4747
}
48-
Some(LineRule::Input(input)) =>
49-
{
50-
#[allow(clippy::while_let_on_iterator)]
51-
while let Some(next) = rule_iter.next() {
48+
Some(LineRule::Input(input)) => {
49+
if let Some(next) = rule_iter.next() {
5250
match next {
5351
LineRule::CheckNotInvalid => {
5452
panic!("not invalid at unexpected position");

0 commit comments

Comments
 (0)