Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/build.rs')
| -rw-r--r-- | helix-term/build.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/helix-term/build.rs b/helix-term/build.rs index 60a64659..6bebf00c 100644 --- a/helix-term/build.rs +++ b/helix-term/build.rs @@ -66,16 +66,18 @@ mod windows_rc { .output(); match find_reg_key { - Err(find_reg_key) => Err(io::Error::new( - io::ErrorKind::Other, - format!("Failed to run registry query: {}", find_reg_key), - )), + Err(find_reg_key) => { + return Err(io::Error::new( + io::ErrorKind::Other, + format!("Failed to run registry query: {}", find_reg_key), + )) + } Ok(find_reg_key) => { if find_reg_key.status.code().unwrap() != 0 { - Err(io::Error::new( + return Err(io::Error::new( io::ErrorKind::Other, "Can not find Windows SDK", - )) + )); } else { let lines = String::from_utf8(find_reg_key.stdout) .expect("Should be able to parse the output"); |