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)
|
DirEntry::BrokenSymlink(path)
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {
|
return match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {
|
||||||
path,
|
path,
|
||||||
err: inner_err,
|
err: inner_err,
|
||||||
})) {
|
})) {
|
||||||
Ok(_) => {
|
Ok(_) => ignore::WalkState::Continue,
|
||||||
return ignore::WalkState::Continue;
|
Err(_) => ignore::WalkState::Quit,
|
||||||
}
|
|
||||||
Err(_) => {
|
|
||||||
return ignore::WalkState::Quit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(err) => match tx_thread.send(WorkerResult::Error(err)) {
|
Err(err) => {
|
||||||
Ok(_) => {
|
return match tx_thread.send(WorkerResult::Error(err)) {
|
||||||
return ignore::WalkState::Continue;
|
Ok(_) => ignore::WalkState::Continue,
|
||||||
|
Err(_) => ignore::WalkState::Quit,
|
||||||
}
|
}
|
||||||
Err(_) => {
|
}
|
||||||
return ignore::WalkState::Quit;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(min_depth) = config.min_depth {
|
if let Some(min_depth) = config.min_depth {
|
||||||
|
|
Loading…
Reference in a new issue