diff options
| author | DebugSteven <debugsteven@gmail.com> | 2023-01-01 14:34:40 -0700 |
|---|---|---|
| committer | DebugSteven <debugsteven@gmail.com> | 2023-01-01 14:34:40 -0700 |
| commit | d7cac976dc3ce23fcd119e8194b1cb824e1800df (patch) | |
| tree | 337776028f3da50a25b67790cc353893c801e333 | |
| parent | e94354e3632e76c6ccff91f40fa054f68e2e87f4 (diff) | |
| download | rust-d7cac976dc3ce23fcd119e8194b1cb824e1800df.tar.gz rust-d7cac976dc3ce23fcd119e8194b1cb824e1800df.zip | |
combine error branches
| -rw-r--r-- | src/tools/tidy/src/x_version.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/tidy/src/x_version.rs b/src/tools/tidy/src/x_version.rs index 9cb762b9419..0a5055f6191 100644 --- a/src/tools/tidy/src/x_version.rs +++ b/src/tools/tidy/src/x_version.rs @@ -14,9 +14,7 @@ pub fn check(bad: &mut bool) { let (child, temp_child) = match (result, temp_result) { (Ok(child), Ok(temp_child)) => (child, temp_child), - // what would it mean if the temp cmd error'd? - (Ok(_child), Err(_e)) => todo!(), - (Err(e), _) => match e.kind() { + (Err(e), _) | (_, Err(e)) => match e.kind() { ErrorKind::NotFound => return, _ => return tidy_error!(bad, "failed to run `x`: {}", e), }, |
