aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2020-07-15 13:17:32 +0100
committerJeremy Kolb <[email protected]>2020-07-15 13:17:32 +0100
commit26725fcfbb6d9e7579d5d1e78b0fcc3f3d0c0467 (patch)
treee5ea972676a04d089510c251e574270980966ae7 /crates
parentaa598ecb75331068f4cacd443512991bc48937dc (diff)
Fix conversion
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/from_proto.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/from_proto.rs b/crates/rust-analyzer/src/from_proto.rs
index e2abfa3e0..9f8ce3b99 100644
--- a/crates/rust-analyzer/src/from_proto.rs
+++ b/crates/rust-analyzer/src/from_proto.rs
@@ -58,9 +58,9 @@ pub(crate) fn assist_kind(kind: lsp_types::CodeActionKind) -> Option<AssistKind>
58 k if k == &lsp_types::CodeActionKind::EMPTY => AssistKind::None, 58 k if k == &lsp_types::CodeActionKind::EMPTY => AssistKind::None,
59 k if k == &lsp_types::CodeActionKind::QUICKFIX => AssistKind::QuickFix, 59 k if k == &lsp_types::CodeActionKind::QUICKFIX => AssistKind::QuickFix,
60 k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::Refactor, 60 k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::Refactor,
61 k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::RefactorExtract, 61 k if k == &lsp_types::CodeActionKind::REFACTOR_EXTRACT => AssistKind::RefactorExtract,
62 k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::RefactorInline, 62 k if k == &lsp_types::CodeActionKind::REFACTOR_INLINE => AssistKind::RefactorInline,
63 k if k == &lsp_types::CodeActionKind::REFACTOR => AssistKind::RefactorRewrite, 63 k if k == &lsp_types::CodeActionKind::REFACTOR_REWRITE => AssistKind::RefactorRewrite,
64 _ => return None, 64 _ => return None,
65 }; 65 };
66 66