mirror of https://github.com/sharkdp/fd.git
Solve clippy issues
This commit is contained in:
parent
33df48ebe4
commit
b9d0e72f70
|
@ -327,7 +327,7 @@ fn spawn_senders(
|
||||||
.ok()
|
.ok()
|
||||||
.map_or(false, |m| m.file_type().is_symlink()) =>
|
.map_or(false, |m| m.file_type().is_symlink()) =>
|
||||||
{
|
{
|
||||||
DirEntry::BrokenSymlink(path.to_owned())
|
DirEntry::BrokenSymlink(path)
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
tx_thread
|
tx_thread
|
||||||
|
@ -440,7 +440,7 @@ fn spawn_senders(
|
||||||
|
|
||||||
let send_result = tx_thread.send(WorkerResult::Entry(entry_path.to_owned()));
|
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;
|
return ignore::WalkState::Quit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue