diff options
author | Aleksey Kladov <[email protected]> | 2019-02-08 11:49:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-08 11:49:43 +0000 |
commit | 12e3b4c70b5ef23b2fdfc197296d483680e125f9 (patch) | |
tree | 71baa0e0a62f9f6b61450501c5f821f67badf9e4 /crates/tools/src/main.rs | |
parent | 5cb1d41a30d25cbe136402644bf5434dd667f1e5 (diff) |
reformat the world
Diffstat (limited to 'crates/tools/src/main.rs')
-rw-r--r-- | crates/tools/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index c3e293911..963ffbe98 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs | |||
@@ -15,10 +15,7 @@ fn main() -> Result<()> { | |||
15 | .subcommand(SubCommand::with_name("format-hook")) | 15 | .subcommand(SubCommand::with_name("format-hook")) |
16 | .subcommand(SubCommand::with_name("fuzz-tests")) | 16 | .subcommand(SubCommand::with_name("fuzz-tests")) |
17 | .get_matches(); | 17 | .get_matches(); |
18 | match matches | 18 | match matches.subcommand_name().expect("Subcommand must be specified") { |
19 | .subcommand_name() | ||
20 | .expect("Subcommand must be specified") | ||
21 | { | ||
22 | "install-code" => install_code_extension()?, | 19 | "install-code" => install_code_extension()?, |
23 | "gen-tests" => gen_tests(Overwrite)?, | 20 | "gen-tests" => gen_tests(Overwrite)?, |
24 | "gen-syntax" => generate(Overwrite)?, | 21 | "gen-syntax" => generate(Overwrite)?, |
@@ -45,10 +42,7 @@ fn install_code_extension() -> Result<()> { | |||
45 | "./editors/code", | 42 | "./editors/code", |
46 | )?; | 43 | )?; |
47 | } else { | 44 | } else { |
48 | run( | 45 | run(r"code --install-extension ./ra-lsp-0.0.1.vsix --force", "./editors/code")?; |
49 | r"code --install-extension ./ra-lsp-0.0.1.vsix --force", | ||
50 | "./editors/code", | ||
51 | )?; | ||
52 | } | 46 | } |
53 | Ok(()) | 47 | Ok(()) |
54 | } | 48 | } |