never_loop
This commit is contained in:
parent
9e4f94c938
commit
6709eaba2a
@ -22,7 +22,7 @@ fn install_tests(tests: &HashMap<String, Test>, into: &str) {
|
||||
}
|
||||
// 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}");
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,7 @@ fn finish(self) {
|
||||
)
|
||||
}
|
||||
|
||||
for path in self.contains_fixme {
|
||||
if let Some(path) = self.contains_fixme.first() {
|
||||
panic!("FIXME doc in a fully-documented crate: {}", path.display())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user