diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-18 02:49:50 +0000 |
commit | 9835e2ae736235810b4ea1c162ca5e65c547e770 (patch) | |
tree | 3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/walkdir/src/lib.rs | |
parent | Releasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff) | |
download | rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip |
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/walkdir/src/lib.rs')
-rw-r--r-- | vendor/walkdir/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/walkdir/src/lib.rs b/vendor/walkdir/src/lib.rs index 929c5655e..4d41515df 100644 --- a/vendor/walkdir/src/lib.rs +++ b/vendor/walkdir/src/lib.rs @@ -601,7 +601,7 @@ impl Ancestor { #[cfg(windows)] fn new(dent: &DirEntry) -> io::Result<Ancestor> { let handle = Handle::from_path(dent.path())?; - Ok(Ancestor { path: dent.path().to_path_buf(), handle: handle }) + Ok(Ancestor { path: dent.path().to_path_buf(), handle }) } /// Create a new ancestor from the given directory path. @@ -811,7 +811,7 @@ impl IntoIter { where P: FnMut(&DirEntry) -> bool, { - FilterEntry { it: self, predicate: predicate } + FilterEntry { it: self, predicate } } fn handle_entry( @@ -1109,7 +1109,7 @@ where /// [`min_depth`]: struct.WalkDir.html#method.min_depth /// [`max_depth`]: struct.WalkDir.html#method.max_depth pub fn filter_entry(self, predicate: P) -> FilterEntry<Self, P> { - FilterEntry { it: self, predicate: predicate } + FilterEntry { it: self, predicate } } /// Skips the current directory. |