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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy