mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Use rustup toolchain instead of rustup install
This commit is contained in:
parent
b236f6aa49
commit
74c7c7a8b1
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ pub fn run_rustfmt(mode: Mode) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn install_rustfmt() -> 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), ".")
|
run(&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN), ".")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ pub fn run_clippy() -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn install_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), ".")
|
run(&format!("rustup component add clippy --toolchain {}", TOOLCHAIN), ".")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue