diff options
author | Kevin DeLorey <[email protected]> | 2020-02-08 03:02:01 +0000 |
---|---|---|
committer | Kevin DeLorey <[email protected]> | 2020-02-08 03:02:01 +0000 |
commit | 5216b09ed67b4d9ff57e3ffb7fec010e73832309 (patch) | |
tree | c3393ed5624ddc3ea046eb45a734bee8223d18b4 /crates/ra_ide | |
parent | fc46ed81ee54d342d83e428ca74cbb0083547251 (diff) |
Update completion kind to Magic in the unit tests.
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/completion/complete_trait_impl.rs | 4 |
1 files 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, | |||
166 | format!("fn {}()", func_name.to_string()) | 166 | format!("fn {}()", func_name.to_string()) |
167 | }; | 167 | }; |
168 | 168 | ||
169 | let builder = CompletionItem::new(CompletionKind::Reference, start, label); | 169 | let builder = CompletionItem::new(CompletionKind::Magic, start, label); |
170 | 170 | ||
171 | let completion_kind = if func.has_self_param(ctx.db) { | 171 | let completion_kind = if func.has_self_param(ctx.db) { |
172 | CompletionItemKind::Method | 172 | CompletionItemKind::Method |
@@ -193,7 +193,7 @@ mod tests { | |||
193 | use insta::assert_debug_snapshot; | 193 | use insta::assert_debug_snapshot; |
194 | 194 | ||
195 | fn complete(code: &str) -> Vec<CompletionItem> { | 195 | fn complete(code: &str) -> Vec<CompletionItem> { |
196 | do_completion(code, CompletionKind::Reference) | 196 | do_completion(code, CompletionKind::Magic) |
197 | } | 197 | } |
198 | 198 | ||
199 | #[test] | 199 | #[test] |