about summary refs log tree commit diff
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2022-08-23 18:47:29 +0200
committerest31 <MTest31@outlook.com>2022-08-23 18:47:29 +0200
commit6a1f7afd2fe8f0a49cb702ac4ac4f1ff45d48ee5 (patch)
tree13925e3585b3d7609252c62b9230202de4d5c4ae
parentee8c31e64d229cac4eba6d8f03bb70e16f34a14b (diff)
downloadrust-6a1f7afd2fe8f0a49cb702ac4ac4f1ff45d48ee5.tar.gz
rust-6a1f7afd2fe8f0a49cb702ac4ac4f1ff45d48ee5.zip
Use direct pointer to filter_dirs function
-rw-r--r--src/tools/tidy/src/error_codes_check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tidy/src/error_codes_check.rs b/src/tools/tidy/src/error_codes_check.rs
index f0054a1c1c9..0a226443e01 100644
--- a/src/tools/tidy/src/error_codes_check.rs
+++ b/src/tools/tidy/src/error_codes_check.rs
@@ -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();