Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/render/macro_.rs')
| -rw-r--r-- | crates/ide_completion/src/render/macro_.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/ide_completion/src/render/macro_.rs b/crates/ide_completion/src/render/macro_.rs index 22fb1f4825..4b505b3f5a 100644 --- a/crates/ide_completion/src/render/macro_.rs +++ b/crates/ide_completion/src/render/macro_.rs @@ -52,14 +52,8 @@ impl<'a> MacroRender<'a> { } else { Some(self.ctx.source_range()) }?; - let kind = match self.macro_.kind() { - hir::MacroKind::Derive => SymbolKind::Derive, - hir::MacroKind::Attr => SymbolKind::Attribute, - hir::MacroKind::BuiltIn | hir::MacroKind::Declarative | hir::MacroKind::ProcMacro => { - SymbolKind::Macro - } - }; - let mut item = CompletionItem::new(kind, source_range, self.label()); + let mut item = + CompletionItem::new(SymbolKind::from(self.macro_.kind()), source_range, self.label()); item.set_deprecated(self.ctx.is_deprecated(self.macro_)).set_detail(self.detail()); if let Some(import_to_add) = import_to_add { |