never_loop

This commit is contained in:
Johann Hemmann 2024-01-19 14:15:24 +01:00
parent 9e4f94c938
commit 6709eaba2a
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ fn sourcegen_parser_tests() {
}
// ok is never actually read, but it needs to be specified to create a Test in existing_tests
let existing = existing_tests(&tests_dir, true);
for t in existing.keys().filter(|&t| !tests.contains_key(t)) {
if let Some(t) = existing.keys().find(|&t| !tests.contains_key(t)) {
panic!("Test is deleted: {t}");
}