From e66037f1391052a8e81d6ad1493203a99eb440bb Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 12 Apr 2022 15:34:12 +0200 Subject: [PATCH] simplify --- crates/ide_completion/src/item.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index 849ce0b409..41fae38da1 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs @@ -336,7 +336,7 @@ impl CompletionItem { kind: kind.into(), text_edit: None, deprecated: false, - trigger_call_info: None, + trigger_call_info: false, relevance: CompletionRelevance::default(), ref_match: None, imports_to_add: Default::default(), @@ -419,7 +419,7 @@ pub(crate) struct Builder { kind: CompletionItemKind, text_edit: Option, deprecated: bool, - trigger_call_info: Option, + trigger_call_info: bool, relevance: CompletionRelevance, ref_match: Option, } @@ -465,7 +465,7 @@ impl Builder { lookup, kind: self.kind, deprecated: self.deprecated, - trigger_call_info: self.trigger_call_info.unwrap_or(false), + trigger_call_info: self.trigger_call_info, relevance: self.relevance, ref_match: self.ref_match, import_to_add: self.imports_to_add, @@ -533,7 +533,7 @@ impl Builder { self } pub(crate) fn trigger_call_info(&mut self) -> &mut Builder { - self.trigger_call_info = Some(true); + self.trigger_call_info = true; self } pub(crate) fn add_import(&mut self, import_to_add: LocatedImport) -> &mut Builder {