From 7e217a42e1c2dfd26defb9f448d8b0c57c7fc1a4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Mar 2021 12:12:32 +0300 Subject: Unify naming --- crates/ide_completion/src/completions/record.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ide_completion/src/completions/record.rs') diff --git a/crates/ide_completion/src/completions/record.rs b/crates/ide_completion/src/completions/record.rs index b9af09698..2f95b8687 100644 --- a/crates/ide_completion/src/completions/record.rs +++ b/crates/ide_completion/src/completions/record.rs @@ -22,13 +22,13 @@ pub(crate) fn complete_record(acc: &mut Completions, ctx: &CompletionContext) -> let completion_text = completion_text .strip_prefix(ctx.token.to_string().as_str()) .unwrap_or(completion_text); - let mut builder = CompletionItem::new( + let mut item = CompletionItem::new( CompletionKind::Snippet, ctx.source_range(), "..Default::default()", ); - builder.insert_text(completion_text).kind(SymbolKind::Field); - acc.add(builder.build()); + item.insert_text(completion_text).kind(SymbolKind::Field); + item.add_to(acc); } missing_fields -- cgit v1.2.3