mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-24 12:03:31 +00:00
Cleanup
This commit is contained in:
parent
444d67ae18
commit
abc0ed36bd
1 changed files with 4 additions and 4 deletions
|
@ -208,7 +208,7 @@ impl CompletionItem {
|
|||
lookup: None,
|
||||
kind: None,
|
||||
text_edit: None,
|
||||
deprecated: None,
|
||||
deprecated: false,
|
||||
trigger_call_info: None,
|
||||
score: None,
|
||||
ref_match: None,
|
||||
|
@ -308,7 +308,7 @@ pub(crate) struct Builder {
|
|||
lookup: Option<String>,
|
||||
kind: Option<CompletionItemKind>,
|
||||
text_edit: Option<TextEdit>,
|
||||
deprecated: Option<bool>,
|
||||
deprecated: bool,
|
||||
trigger_call_info: Option<bool>,
|
||||
score: Option<CompletionScore>,
|
||||
ref_match: Option<(Mutability, CompletionScore)>,
|
||||
|
@ -355,7 +355,7 @@ impl Builder {
|
|||
lookup,
|
||||
kind: self.kind,
|
||||
completion_kind: self.completion_kind,
|
||||
deprecated: self.deprecated.unwrap_or(false),
|
||||
deprecated: self.deprecated,
|
||||
trigger_call_info: self.trigger_call_info.unwrap_or(false),
|
||||
score: self.score,
|
||||
ref_match: self.ref_match,
|
||||
|
@ -415,7 +415,7 @@ impl Builder {
|
|||
self
|
||||
}
|
||||
pub(crate) fn set_deprecated(mut self, deprecated: bool) -> Builder {
|
||||
self.deprecated = Some(deprecated);
|
||||
self.deprecated = deprecated;
|
||||
self
|
||||
}
|
||||
pub(crate) fn set_score(mut self, score: CompletionScore) -> Builder {
|
||||
|
|
Loading…
Reference in a new issue