From 5216b09ed67b4d9ff57e3ffb7fec010e73832309 Mon Sep 17 00:00:00 2001 From: Kevin DeLorey <2295721+kdelorey@users.noreply.github.com> Date: Fri, 7 Feb 2020 21:02:01 -0600 Subject: Update completion kind to Magic in the unit tests. --- crates/ra_ide/src/completion/complete_trait_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ra_ide/src/completion/complete_trait_impl.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs index c94ebee82..8f38c6325 100644 --- a/crates/ra_ide/src/completion/complete_trait_impl.rs +++ b/crates/ra_ide/src/completion/complete_trait_impl.rs @@ -166,7 +166,7 @@ pub(crate) fn add_function_impl(acc: &mut Completions, ctx: &CompletionContext, format!("fn {}()", func_name.to_string()) }; - let builder = CompletionItem::new(CompletionKind::Reference, start, label); + let builder = CompletionItem::new(CompletionKind::Magic, start, label); let completion_kind = if func.has_self_param(ctx.db) { CompletionItemKind::Method @@ -193,7 +193,7 @@ mod tests { use insta::assert_debug_snapshot; fn complete(code: &str) -> Vec { - do_completion(code, CompletionKind::Reference) + do_completion(code, CompletionKind::Magic) } #[test] -- cgit v1.2.3