mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
don't wrap code block in Ok() (clipppy::unit_arg)
This commit is contained in:
parent
5e6e1e33a1
commit
dbe3acfaeb
@ -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 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(
|
let git = t!(Command::new("git").args(&["rev-parse", "--git-common-dir"]).output().map(
|
||||||
|output| {
|
|output| {
|
||||||
@ -217,5 +217,6 @@ simply delete the `pre-commit` file from .git/hooks."
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
println!("Ok, skipping installation!");
|
println!("Ok, skipping installation!");
|
||||||
})
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user