We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
read_dir
1 parent 3186d17 commit d9962bbCopy full SHA for d9962bb
src/tools/run-make-support/src/lib.rs
@@ -387,7 +387,7 @@ pub fn recursive_diff(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
387
});
388
}
389
390
-pub fn read_dir<F: Fn(&Path)>(dir: impl AsRef<Path>, callback: F) {
+pub fn read_dir<F: FnMut(&Path)>(dir: impl AsRef<Path>, mut callback: F) {
391
for entry in fs_wrapper::read_dir(dir) {
392
callback(&entry.unwrap().path());
393
0 commit comments