From 00eb6461cb2da687d1d0750a45efe9380c7e39b2 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Tue, 12 Oct 2021 00:46:15 -0600 Subject: [PATCH] Remove an unnecessary reference. (#864) This was caught by Code Quality github action with the message: > this expression borrows a reference (`&walk::DirEntry`) that is immediately dereferenced by the compiler --- src/filetypes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filetypes.rs b/src/filetypes.rs index 2baf0f2..3f9281d 100644 --- a/src/filetypes.rs +++ b/src/filetypes.rs @@ -39,7 +39,7 @@ impl FileTypes { .metadata() .map(|m| filesystem::is_executable(&m)) .unwrap_or(false)) - || (self.empty_only && !filesystem::is_empty(&entry)) + || (self.empty_only && !filesystem::is_empty(entry)) || !(entry_type.is_file() || entry_type.is_dir() || entry_type.is_symlink()