mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
reformat the world
This commit is contained in:
parent
5cb1d41a30
commit
12e3b4c70b
129 changed files with 727 additions and 2509 deletions
|
@ -15,10 +15,7 @@ fn main() -> Result<()> {
|
|||
.subcommand(SubCommand::with_name("format-hook"))
|
||||
.subcommand(SubCommand::with_name("fuzz-tests"))
|
||||
.get_matches();
|
||||
match matches
|
||||
.subcommand_name()
|
||||
.expect("Subcommand must be specified")
|
||||
{
|
||||
match matches.subcommand_name().expect("Subcommand must be specified") {
|
||||
"install-code" => install_code_extension()?,
|
||||
"gen-tests" => gen_tests(Overwrite)?,
|
||||
"gen-syntax" => generate(Overwrite)?,
|
||||
|
@ -45,10 +42,7 @@ fn install_code_extension() -> Result<()> {
|
|||
"./editors/code",
|
||||
)?;
|
||||
} else {
|
||||
run(
|
||||
r"code --install-extension ./ra-lsp-0.0.1.vsix --force",
|
||||
"./editors/code",
|
||||
)?;
|
||||
run(r"code --install-extension ./ra-lsp-0.0.1.vsix --force", "./editors/code")?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue