mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 09:50:34 +01:00
Fix return out of match pattern
This commit is contained in:
parent
c37592b0b7
commit
4e04d13215
1 changed files with 8 additions and 14 deletions
22
src/walk.rs
22
src/walk.rs
|
@ -358,27 +358,21 @@ fn spawn_senders(
|
|||
DirEntry::BrokenSymlink(path)
|
||||
}
|
||||
_ => {
|
||||
match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {
|
||||
return match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {
|
||||
path,
|
||||
err: inner_err,
|
||||
})) {
|
||||
Ok(_) => {
|
||||
return ignore::WalkState::Continue;
|
||||
}
|
||||
Err(_) => {
|
||||
return ignore::WalkState::Quit;
|
||||
}
|
||||
Ok(_) => ignore::WalkState::Continue,
|
||||
Err(_) => ignore::WalkState::Quit,
|
||||
}
|
||||
}
|
||||
},
|
||||
Err(err) => match tx_thread.send(WorkerResult::Error(err)) {
|
||||
Ok(_) => {
|
||||
return ignore::WalkState::Continue;
|
||||
Err(err) => {
|
||||
return match tx_thread.send(WorkerResult::Error(err)) {
|
||||
Ok(_) => ignore::WalkState::Continue,
|
||||
Err(_) => ignore::WalkState::Quit,
|
||||
}
|
||||
Err(_) => {
|
||||
return ignore::WalkState::Quit;
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
if let Some(min_depth) = config.min_depth {
|
||||
|
|
Loading…
Reference in a new issue