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
Relates to #382
--type socket
--type pipe
closes #511