Skip to content

Commit d9962bb

Browse files
Make read_dir method take a mutable callback
1 parent 3186d17 commit d9962bb

File tree

1 file changed

+1
-1
lines changed
  • src/tools/run-make-support/src

1 file changed

+1
-1
lines changed

src/tools/run-make-support/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ pub fn recursive_diff(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
387387
});
388388
}
389389

390-
pub fn read_dir<F: Fn(&Path)>(dir: impl AsRef<Path>, callback: F) {
390+
pub fn read_dir<F: FnMut(&Path)>(dir: impl AsRef<Path>, mut callback: F) {
391391
for entry in fs_wrapper::read_dir(dir) {
392392
callback(&entry.unwrap().path());
393393
}

0 commit comments

Comments
 (0)