Lints
This commit is contained in:
parent
baa22d746a
commit
be53c7f0db
|
|
@ -83,10 +83,8 @@ impl<'a> Stream<'a> {
|
||||||
if !self.options.exists {
|
if !self.options.exists {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let resolver = match self.options.resolve_symlinks {
|
let resolver =
|
||||||
true => fs::metadata,
|
if self.options.resolve_symlinks { fs::metadata } else { fs::symlink_metadata };
|
||||||
false => fs::symlink_metadata,
|
|
||||||
};
|
|
||||||
resolver(path).map(|metadata| metadata.is_dir()).unwrap_or_default()
|
resolver(path).map(|metadata| metadata.is_dir()).unwrap_or_default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue