mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Use bool
instead of Option<bool>
and print it's value only when true
This commit is contained in:
parent
dc3848a6a3
commit
ccf8817d18
9 changed files with 6 additions and 79 deletions
|
@ -127,7 +127,7 @@ impl ConvWith<(&LineIndex, LineEndings)> for CompletionItem {
|
|||
text_edit: Some(text_edit),
|
||||
additional_text_edits: Some(additional_text_edits),
|
||||
documentation: self.documentation().map(|it| it.conv()),
|
||||
deprecated: self.deprecated(),
|
||||
deprecated: Some(self.deprecated()),
|
||||
..Default::default()
|
||||
};
|
||||
res.insert_text_format = Some(match self.insert_text_format() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue