From 79f35cc6992d18e97b0bb9e309a2dc37f6f286e8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 18 Feb 2019 12:07:47 +0300 Subject: More orthogonal method naming --- crates/ra_ide_api/src/completion/complete_keyword.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src/completion/complete_keyword.rs') diff --git a/crates/ra_ide_api/src/completion/complete_keyword.rs b/crates/ra_ide_api/src/completion/complete_keyword.rs index 10ae01bc5..b667381a7 100644 --- a/crates/ra_ide_api/src/completion/complete_keyword.rs +++ b/crates/ra_ide_api/src/completion/complete_keyword.rs @@ -40,7 +40,7 @@ pub(super) fn complete_use_tree_keyword(acc: &mut Completions, ctx: &CompletionC fn keyword(ctx: &CompletionContext, kw: &str, snippet: &str) -> CompletionItem { CompletionItem::new(CompletionKind::Keyword, ctx.source_range(), kw) .kind(CompletionItemKind::Keyword) - .snippet(snippet) + .insert_snippet(snippet) .build() } -- cgit v1.2.3