From 15411d4474ceaacf10787f52c916ade3dea0eb49 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 5 Aug 2019 00:28:36 +0300 Subject: Use proper inlay kinds --- crates/ra_lsp_server/src/main_loop/handlers.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'crates/ra_lsp_server/src/main_loop') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index c2a44ffa0..a6dc1f964 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -894,14 +894,7 @@ pub fn handle_inlay_hints( label: api_type.label.to_string(), range: api_type.range.conv_with(&line_index), kind: match api_type.kind { - ra_ide_api::InlayKind::LetBindingType => InlayKind::LetBindingType, - ra_ide_api::InlayKind::ClosureParameterType => InlayKind::ClosureParameterType, - ra_ide_api::InlayKind::ForExpressionBindingType => { - InlayKind::ForExpressionBindingType - } - ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType, - ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType, - ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType, + ra_ide_api::InlayKind::TypeHint => InlayKind::TypeHint, }, }) .collect()) -- cgit v1.2.3