style nits

This commit is contained in:
Andrew Gallant
2016-10-10 19:27:12 -04:00
parent e96d93034a
commit e8645dc8ae
2 changed files with 22 additions and 21 deletions

View File

@@ -709,8 +709,8 @@ impl Args {
/// Create a new recursive directory iterator at the path given.
pub fn walker(&self, path: &Path) -> Result<walk::Iter> {
// Always follow symlinks for explicitly specified files.
let mut wd = WalkDir::new(path).follow_links(self.follow
|| path.is_file());
let mut wd = WalkDir::new(path).follow_links(
self.follow || path.is_file());
if let Some(maxdepth) = self.maxdepth {
wd = wd.max_depth(maxdepth);
}