We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afa7b62 commit 87ee33aCopy full SHA for 87ee33a
src/tools/tidy/src/ui_tests.rs
@@ -57,11 +57,9 @@ const EXTENSION_EXCEPTION_PATHS: &[&str] = &[
57
fn check_entries(tests_path: &Path, bad: &mut bool) {
58
let mut directories: HashMap<PathBuf, u32> = HashMap::new();
59
60
- for dir in Walk::new(tests_path.join("ui")) {
61
- if let Ok(entry) = dir {
62
- let parent = entry.path().parent().unwrap().to_path_buf();
63
- *directories.entry(parent).or_default() += 1;
64
- }
+ for entry in Walk::new(tests_path.join("ui")).flatten() {
+ let parent = entry.path().parent().unwrap().to_path_buf();
+ *directories.entry(parent).or_default() += 1;
65
}
66
67
let (mut max, mut max_issues) = (0, 0);
0 commit comments