aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/src/item.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs
index b6bc11da2..b16f0775a 100644
--- a/crates/ide_completion/src/item.rs
+++ b/crates/ide_completion/src/item.rs
@@ -208,7 +208,7 @@ impl CompletionItem {
208 lookup: None, 208 lookup: None,
209 kind: None, 209 kind: None,
210 text_edit: None, 210 text_edit: None,
211 deprecated: None, 211 deprecated: false,
212 trigger_call_info: None, 212 trigger_call_info: None,
213 score: None, 213 score: None,
214 ref_match: None, 214 ref_match: None,
@@ -308,7 +308,7 @@ pub(crate) struct Builder {
308 lookup: Option<String>, 308 lookup: Option<String>,
309 kind: Option<CompletionItemKind>, 309 kind: Option<CompletionItemKind>,
310 text_edit: Option<TextEdit>, 310 text_edit: Option<TextEdit>,
311 deprecated: Option<bool>, 311 deprecated: bool,
312 trigger_call_info: Option<bool>, 312 trigger_call_info: Option<bool>,
313 score: Option<CompletionScore>, 313 score: Option<CompletionScore>,
314 ref_match: Option<(Mutability, CompletionScore)>, 314 ref_match: Option<(Mutability, CompletionScore)>,
@@ -355,7 +355,7 @@ impl Builder {
355 lookup, 355 lookup,
356 kind: self.kind, 356 kind: self.kind,
357 completion_kind: self.completion_kind, 357 completion_kind: self.completion_kind,
358 deprecated: self.deprecated.unwrap_or(false), 358 deprecated: self.deprecated,
359 trigger_call_info: self.trigger_call_info.unwrap_or(false), 359 trigger_call_info: self.trigger_call_info.unwrap_or(false),
360 score: self.score, 360 score: self.score,
361 ref_match: self.ref_match, 361 ref_match: self.ref_match,
@@ -415,7 +415,7 @@ impl Builder {
415 self 415 self
416 } 416 }
417 pub(crate) fn set_deprecated(mut self, deprecated: bool) -> Builder { 417 pub(crate) fn set_deprecated(mut self, deprecated: bool) -> Builder {
418 self.deprecated = Some(deprecated); 418 self.deprecated = deprecated;
419 self 419 self
420 } 420 }
421 pub(crate) fn set_score(mut self, score: CompletionScore) -> Builder { 421 pub(crate) fn set_score(mut self, score: CompletionScore) -> Builder {