Fix cargo format component name and run rustfmt

This commit is contained in:
DJMcNab 2018-12-09 09:08:10 +00:00
parent 12addc6233
commit bb0c2eb8d9
2 changed files with 2 additions and 8 deletions

View file

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