about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-12-05 13:12:07 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-12-08 20:27:48 +0100
commitdbe3acfaebf258da43a7ca9e03c43df508b44132 (patch)
tree83d2f222e5bd1f4cf74767a078acbc678cf69b22 /src/bootstrap
parent5e6e1e33a11d140a4d70f946730137f241224eb3 (diff)
downloadrust-dbe3acfaebf258da43a7ca9e03c43df508b44132.tar.gz
rust-dbe3acfaebf258da43a7ca9e03c43df508b44132.zip
don't wrap code block in Ok() (clipppy::unit_arg)
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/setup.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootstrap/setup.rs b/src/bootstrap/setup.rs
index 55d2445fc49..2d4484c562c 100644
--- a/src/bootstrap/setup.rs
+++ b/src/bootstrap/setup.rs
@@ -198,7 +198,7 @@ simply delete the `pre-commit` file from .git/hooks."
         };
     };
 
-    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 @@ simply delete the `pre-commit` file from .git/hooks."
         };
     } else {
         println!("Ok, skipping installation!");
-    })
+    }
+    Ok(())
 }