mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Install rustfmt in rustfmt test
This commit is contained in:
parent
09c20c8fcf
commit
ed47c93afe
4 changed files with 5 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue