Skip to content

Commit 12976b2

Browse files
committed
Make test-support matchers more idiomatic
1 parent 1206faa commit 12976b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

crates/test-support/src/matchers.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,12 +374,15 @@ impl Execs {
374374

375375
let mut matches = 0;
376376

377-
while let Some(..) = {
377+
loop {
378378
if self.diff_lines(a.clone(), e.clone(), true).is_empty() {
379379
matches += 1;
380380
}
381-
a.next()
382-
} {}
381+
382+
if a.next().is_none() {
383+
break;
384+
}
385+
}
383386

384387
if matches == number {
385388
Ok(())

0 commit comments

Comments
 (0)