From 5276bfff819520cd27703b5d33a95d9674649e1e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 24 May 2020 17:04:17 +0200 Subject: Fix formatting --- crates/rust-analyzer/src/lsp_ext.rs | 1 - crates/rust-analyzer/src/main_loop.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/rust-analyzer/src/lsp_ext.rs b/crates/rust-analyzer/src/lsp_ext.rs index c7e31c076..52e4fcbec 100644 --- a/crates/rust-analyzer/src/lsp_ext.rs +++ b/crates/rust-analyzer/src/lsp_ext.rs @@ -60,7 +60,6 @@ pub struct ExpandedMacro { pub expansion: String, } - pub enum MatchingBrace {} impl Request for MatchingBrace { diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index e28a32c26..f1287d52c 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs @@ -509,9 +509,7 @@ fn on_request( .on_sync::(|s, p| { handlers::handle_selection_range(s.snapshot(), p) })? - .on_sync::(|s, p| { - handlers::handle_matching_brace(s.snapshot(), p) - })? + .on_sync::(|s, p| handlers::handle_matching_brace(s.snapshot(), p))? .on::(handlers::handle_analyzer_status)? .on::(handlers::handle_syntax_tree)? .on::(handlers::handle_expand_macro)? -- cgit v1.2.3