From bb0c2eb8d9da46ca1c71e42dcc363c13028b3eae Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Sun, 9 Dec 2018 09:08:10 +0000 Subject: Fix cargo format component name and run rustfmt --- crates/tools/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crates/tools/src/lib.rs') diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs index c2123db99..674b9d11f 100644 --- a/crates/tools/src/lib.rs +++ b/crates/tools/src/lib.rs @@ -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), ".", ) } -- cgit v1.2.3