diff options
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. |