Install rustfmt in rustfmt test

This commit is contained in:
Aleksander Vognild Burkow 2018-12-29 22:19:35 +01:00
parent 09c20c8fcf
commit ed47c93afe
4 changed files with 5 additions and 1 deletions

View file

@ -117,7 +117,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> {
Ok(())
}
fn install_rustfmt() -> Result<()> {
pub fn install_rustfmt() -> Result<()> {
run(&format!("rustup install {}", TOOLCHAIN), ".")?;
run(
&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN),