]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/setup.rs
bootstrap: convert rustc-dev to use Tarball
[rust.git] / src / bootstrap / setup.rs
index 55d2445fc492c2c2504f3ae3ddf2e88dfcb0ec05..2d4484c562c40db77f9a715800d9fc31de0f9690 100644 (file)
@@ -198,7 +198,7 @@ fn install_git_hook_maybe(src_path: &Path) -> io::Result<()> {
         };
     };
 
-    Ok(if should_install {
+    if should_install {
         let src = src_path.join("src").join("etc").join("pre-commit.sh");
         let git = t!(Command::new("git").args(&["rev-parse", "--git-common-dir"]).output().map(
             |output| {
@@ -217,5 +217,6 @@ fn install_git_hook_maybe(src_path: &Path) -> io::Result<()> {
         };
     } else {
         println!("Ok, skipping installation!");
-    })
+    }
+    Ok(())
 }