Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_completion/src/completions/attribute/derive.rs')
| -rw-r--r-- | crates/ide_completion/src/completions/attribute/derive.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide_completion/src/completions/attribute/derive.rs b/crates/ide_completion/src/completions/attribute/derive.rs index e460a91102..7f050f25c9 100644 --- a/crates/ide_completion/src/completions/attribute/derive.rs +++ b/crates/ide_completion/src/completions/attribute/derive.rs @@ -7,7 +7,7 @@ use syntax::ast; use crate::{ context::CompletionContext, - item::{CompletionItem, CompletionItemKind, CompletionKind}, + item::{CompletionItem, CompletionItemKind}, Completions, }; @@ -56,8 +56,8 @@ pub(super) fn complete_derive( _ => (&*name, None), }; - let mut item = CompletionItem::new(CompletionKind::Attribute, ctx.source_range(), label); - item.kind(CompletionItemKind::Attribute); + let mut item = + CompletionItem::new(CompletionItemKind::Attribute, ctx.source_range(), label); if let Some(docs) = mac.docs(ctx.db) { item.documentation(docs); } |