Fix cargo format component name and run rustfmt

This commit is contained in:
DJMcNab 2018-12-09 09:08:10 +00:00
parent 12addc6233
commit bb0c2eb8d9
2 changed files with 2 additions and 8 deletions

View file

@ -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),
".",
)
}

View file

@ -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",