From b9d0e72f701f5e1bf701292cbe6064ddc6b4aaa0 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 3 Apr 2020 10:08:47 +0200 Subject: [PATCH] Solve clippy issues --- src/walk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/walk.rs b/src/walk.rs index fe09c32..3b677fa 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -327,7 +327,7 @@ fn spawn_senders( .ok() .map_or(false, |m| m.file_type().is_symlink()) => { - DirEntry::BrokenSymlink(path.to_owned()) + DirEntry::BrokenSymlink(path) } _ => { tx_thread @@ -440,7 +440,7 @@ fn spawn_senders( let send_result = tx_thread.send(WorkerResult::Entry(entry_path.to_owned())); - if !send_result.is_ok() { + if send_result.is_err() { return ignore::WalkState::Quit; }