thx clippy

This commit is contained in:
Lynne Megido 2021-02-18 22:11:13 +10:00
parent df2f924b2f
commit 2eccd1bbb2
Signed by: lynnesbian
GPG Key ID: F0A184B5213D9F90

View File

@ -64,7 +64,7 @@ fn is_hidden(entry: &DirEntry) -> bool {
.map_or(false, |f| f.starts_with('.') && f != ".")
}
fn wanted_file(args: &parameters::Parameters, exts: &Vec<&str>, entry: &DirEntry) -> bool {
fn wanted_file(args: &parameters::Parameters, exts: &[&str], entry: &DirEntry) -> bool {
if !args.scan_hidden && is_hidden(entry) {
// skip hidden files and directories. this check is performed first because it's very lightweight.
return false;