diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-22 12:35:28 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-22 12:35:28 +0200 |
| commit | d9962bb4d8c48db89b7587167664718dc0201394 (patch) | |
| tree | 97740e6d3f09daeb29d8b8fb02b4fc863eacd227 /src | |
| parent | 3186d17d56f9803b739a2c0aabd23aafd8791485 (diff) | |
Make `read_dir` method take a mutable callback
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/run-make-support/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs index f4c101cf81c..487132683e9 100644 --- a/src/tools/run-make-support/src/lib.rs +++ b/src/tools/run-make-support/src/lib.rs @@ -387,7 +387,7 @@ pub fn recursive_diff(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) { }); } -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) { for entry in fs_wrapper::read_dir(dir) { callback(&entry.unwrap().path()); } |
