Skip to content
Myr

Remove an unnecessary reference. (#864)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Thayne McCombs · committed by GitHub · parent feb9698 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/filetypes.rs+1 added-1 removed
37 unmodified lines
38 && !entry39 .metadata()40 .map(|m| filesystem::is_executable(&m))41 .unwrap_or(false))42 || (self.empty_only && !filesystem::is_empty(&entry))42 || (self.empty_only && !filesystem::is_empty(entry))43 || !(entry_type.is_file()44 || entry_type.is_dir()45 || entry_type.is_symlink()46 || filesystem::is_socket(*entry_type)
6 unmodified lines