Use direct pointer to filter_dirs function

This commit is contained in:
est31 2022-08-23 18:47:29 +02:00
parent ee8c31e64d
commit 6a1f7afd2f

View File

@ -217,7 +217,7 @@ pub fn check(paths: &[&Path], bad: &mut bool) {
println!("Checking which error codes lack tests...");
for path in paths {
super::walk(path, &mut |path| super::filter_dirs(path), &mut |entry, contents| {
super::walk(path, &mut super::filter_dirs, &mut |entry, contents| {
let file_name = entry.file_name();
let entry_path = entry.path();