Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/build.rs')
-rw-r--r--helix-term/build.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/helix-term/build.rs b/helix-term/build.rs
index 6bebf00c..60a64659 100644
--- a/helix-term/build.rs
+++ b/helix-term/build.rs
@@ -66,18 +66,16 @@ mod windows_rc {
.output();
match find_reg_key {
- Err(find_reg_key) => {
- return Err(io::Error::new(
- io::ErrorKind::Other,
- format!("Failed to run registry query: {}", find_reg_key),
- ))
- }
+ Err(find_reg_key) => 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 {
- return Err(io::Error::new(
+ 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");