Skip to content
Myr

Fix return out of match pattern

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by himself65 · committed by David Peter · parent c37592b · Browse files · 1 file+8 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−14 removed

  • other:+8 added−14 removed

1 file+8 added−14 removed

modified:src/walk.rs+8 added-14 removed
356 unmodified lines
357 {358 DirEntry::BrokenSymlink(path)359 }360 _ => {361 match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {361 return match tx_thread.send(WorkerResult::Error(ignore::Error::WithPath {362 path,363 err: inner_err,364 })) {365 Ok(_) => {366 return ignore::WalkState::Continue;367 }368 Err(_) => {369 return ignore::WalkState::Quit;370 }365 Ok(_) => ignore::WalkState::Continue,366 Err(_) => ignore::WalkState::Quit,367 }368 }369 },374 Err(err) => match tx_thread.send(WorkerResult::Error(err)) {375 Ok(_) => {376 return ignore::WalkState::Continue;370 Err(err) => {371 return match tx_thread.send(WorkerResult::Error(err)) {372 Ok(_) => ignore::WalkState::Continue,373 Err(_) => ignore::WalkState::Quit,374 }378 Err(_) => {379 return ignore::WalkState::Quit;380 }375 }381 },376 };377378 if let Some(min_depth) = config.min_depth {379 if entry.depth().map_or(true, |d| d < min_depth) {
128 unmodified lines