mirror of
https://github.com/sharkdp/fd.git
synced 2024-09-28 13:01:30 +02:00
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
This commit is contained in:
parent
feb969881b
commit
00eb6461cb
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user