aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
diff options
context:
space:
mode:
authorJeremy Kolb <[email protected]>2019-07-04 23:04:46 +0100
committerJeremy Kolb <[email protected]>2019-07-05 00:08:08 +0100
commitb4c0c7f79c4d09508adbb4dcb5aee72c9400efb2 (patch)
tree20462e0e5718f9efcc5783bf6aef072cc6214c8e /crates/ra_lsp_server/src
parent0ab5b1121a1d0849bd27471252756693a26ccdbf (diff)
Symplify by using into()
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index 846991f09..2e6052ba2 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -2,7 +2,7 @@ use std::{fmt::Write as _, io::Write as _};
2 2
3use gen_lsp_server::ErrorCode; 3use gen_lsp_server::ErrorCode;
4use lsp_types::{ 4use lsp_types::{
5 CodeAction, CodeActionOrCommand, CodeActionResponse, CodeLens, Command, Diagnostic, 5 CodeAction, CodeActionResponse, CodeLens, Command, Diagnostic,
6 DiagnosticSeverity, DocumentFormattingParams, DocumentHighlight, DocumentSymbol, FoldingRange, 6 DiagnosticSeverity, DocumentFormattingParams, DocumentHighlight, DocumentSymbol, FoldingRange,
7 FoldingRangeKind, FoldingRangeParams, Hover, HoverContents, Location, MarkupContent, 7 FoldingRangeKind, FoldingRangeParams, Hover, HoverContents, Location, MarkupContent,
8 MarkupKind, Position, PrepareRenameResponse, Range, RenameParams, SymbolInformation, 8 MarkupKind, Position, PrepareRenameResponse, Range, RenameParams, SymbolInformation,
@@ -689,7 +689,7 @@ pub fn handle_code_action(
689 edit: None, 689 edit: None,
690 command: Some(command), 690 command: Some(command),
691 }; 691 };
692 res.push(CodeActionOrCommand::CodeAction(action)); 692 res.push(action.into());
693 } 693 }
694 694
695 for assist in assists { 695 for assist in assists {
@@ -711,7 +711,7 @@ pub fn handle_code_action(
711 edit: None, 711 edit: None,
712 command: Some(command), 712 command: Some(command),
713 }; 713 };
714 res.push(CodeActionOrCommand::CodeAction(action)); 714 res.push(action.into());
715 } 715 }
716 716
717 Ok(Some(res)) 717 Ok(Some(res))