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<()> {
|
fn install_rustfmt() -> Result<()> {
|
||||||
run(&format!("rustup install {}", TOOLCHAIN), ".")?;
|
run(&format!("rustup install {}", TOOLCHAIN), ".")?;
|
||||||
run(
|
run(
|
||||||
&format!(
|
&format!("rustup component add rustfmt --toolchain {}", TOOLCHAIN),
|
||||||
"rustup component add rustfmt-preview --toolchain {}",
|
|
||||||
TOOLCHAIN
|
|
||||||
),
|
|
||||||
".",
|
".",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,10 +121,7 @@ fn install_code_extension() -> Result<()> {
|
||||||
} else {
|
} else {
|
||||||
run(r"npm install", "./editors/code")?;
|
run(r"npm install", "./editors/code")?;
|
||||||
}
|
}
|
||||||
run(
|
run(r"npm run package", "./editors/code")?;
|
||||||
r"npm run package",
|
|
||||||
"./editors/code",
|
|
||||||
)?;
|
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
run(
|
run(
|
||||||
r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix",
|
r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix",
|
||||||
|
|
Loading…
Reference in a new issue