diff --git a/src/walk/mod.rs b/src/walk/mod.rs index 367b50e..503799d 100644 --- a/src/walk/mod.rs +++ b/src/walk/mod.rs @@ -716,7 +716,7 @@ mod tests { use tempfile::{self, TempDir}; use crate::walk::filter::{HierarchicalIterator, Separation, TreeResidue}; - use crate::walk::{FileIterator, LinkBehavior, WalkBehavior}; + use crate::walk::{FileIterator, GlobEntry, LinkBehavior, WalkBehavior}; use crate::Glob; /// Writes a testing directory tree to a temporary location on the file system. @@ -774,7 +774,7 @@ mod tests { let paths: HashSet<_> = glob .walk(&path) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!( paths, @@ -805,7 +805,7 @@ mod tests { let paths: HashSet<_> = glob .walk(&path) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!( paths, @@ -823,7 +823,7 @@ mod tests { let paths: HashSet<_> = glob .walk(&path) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!( paths, @@ -841,7 +841,7 @@ mod tests { let paths: HashSet<_> = glob .walk(&path) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!(paths, [path.join("src/lib.rs")].into_iter().collect()); } @@ -854,7 +854,7 @@ mod tests { let paths: HashSet<_> = glob .walk(path.join(prefix)) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!(paths, [path.join("src/lib.rs")].into_iter().collect()); } @@ -939,7 +939,7 @@ mod tests { }, ) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!( paths, @@ -965,7 +965,7 @@ mod tests { let paths: HashSet<_> = glob .walk_with_behavior(&path, LinkBehavior::ReadFile) .flatten() - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); assert_eq!( paths, @@ -1017,7 +1017,7 @@ mod tests { // detecting the cycle while also introducing unexpected files so that the error can be // detected. .take(expected.len() + 1) - .map(|entry| entry.into_path()) + .map(GlobEntry::into_path) .collect(); paths.sort_unstable(); assert_eq!(paths, expected);