thx clippy
This commit is contained in:
parent
df2f924b2f
commit
2eccd1bbb2
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ fn is_hidden(entry: &DirEntry) -> bool {
|
||||||
.map_or(false, |f| f.starts_with('.') && f != ".")
|
.map_or(false, |f| f.starts_with('.') && f != ".")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn wanted_file(args: ¶meters::Parameters, exts: &Vec<&str>, entry: &DirEntry) -> bool {
|
fn wanted_file(args: ¶meters::Parameters, exts: &[&str], entry: &DirEntry) -> bool {
|
||||||
if !args.scan_hidden && is_hidden(entry) {
|
if !args.scan_hidden && is_hidden(entry) {
|
||||||
// skip hidden files and directories. this check is performed first because it's very lightweight.
|
// skip hidden files and directories. this check is performed first because it's very lightweight.
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue