Skip to content

Commit 6709eab

Browse files
committed
never_loop
1 parent 9e4f94c commit 6709eab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/parser/src/tests/sourcegen_inline_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn sourcegen_parser_tests() {
2222
}
2323
// ok is never actually read, but it needs to be specified to create a Test in existing_tests
2424
let existing = existing_tests(&tests_dir, true);
25-
for t in existing.keys().filter(|&t| !tests.contains_key(t)) {
25+
if let Some(t) = existing.keys().find(|&t| !tests.contains_key(t)) {
2626
panic!("Test is deleted: {t}");
2727
}
2828

crates/rust-analyzer/tests/slow-tests/tidy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ impl TidyDocs {
379379
)
380380
}
381381

382-
for path in self.contains_fixme {
382+
if let Some(path) = self.contains_fixme.first() {
383383
panic!("FIXME doc in a fully-documented crate: {}", path.display())
384384
}
385385
}

0 commit comments

Comments
 (0)