mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 01:52:51 +00:00
Fix cargo format component name and run rustfmt
This commit is contained in:
parent
12addc6233
commit
bb0c2eb8d9
@ -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),
|
||||
".",
|
||||
)
|
||||
}
|
||||
|
@ -121,10 +121,7 @@ fn install_code_extension() -> Result<()> {
|
||||
} else {
|
||||
run(r"npm install", "./editors/code")?;
|
||||
}
|
||||
run(
|
||||
r"npm run package",
|
||||
"./editors/code",
|
||||
)?;
|
||||
run(r"npm run package", "./editors/code")?;
|
||||
if cfg!(windows) {
|
||||
run(
|
||||
r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix",
|
||||
|
Loading…
Reference in New Issue
Block a user