From 2eccd1bbb296a6c22f389c95c3deb822f7b46918 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Thu, 18 Feb 2021 22:11:13 +1000 Subject: [PATCH] thx clippy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 04d0a41..035ffa8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ fn is_hidden(entry: &DirEntry) -> bool { .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) { // skip hidden files and directories. this check is performed first because it's very lightweight. return false;