From 74c7c7a8b1faa0da6a0880916a5e2e5c2b9c1d3f Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Sun, 8 Dec 2019 23:13:56 +0800 Subject: Use rustup toolchain instead of rustup install --- xtask/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 7332a4072..190baeddf 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -79,7 +79,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> { } pub fn install_rustfmt() -> Result<()> { - run(&format!("rustup install {}", TOOLCHAIN), ".")?; + run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".") } @@ -125,7 +125,7 @@ pub fn run_clippy() -> Result<()> { } pub fn install_clippy() -> Result<()> { - run(&format!("rustup install {}", TOOLCHAIN), ".")?; + run(&format!("rustup toolchain install {}", TOOLCHAIN), ".")?; run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".") } -- cgit v1.2.3