mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix cargo format component name and run rustfmt
This commit is contained in:
parent
12addc6233
commit
bb0c2eb8d9
2 changed files with 2 additions and 8 deletions
|
@ -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),
|
||||
".",
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue