diff options
author | Martin Asquino <[email protected]> | 2019-11-02 22:33:34 +0000 |
---|---|---|
committer | Martin Asquino <[email protected]> | 2019-11-02 22:33:34 +0000 |
commit | ccf8817d181ab9430a00c38d96b481a07af701bb (patch) | |
tree | 3ebe6c1e70f859eff504f3081c057060e04c2c5d /crates/ra_lsp_server/src/conv.rs | |
parent | dc3848a6a3e659004ba4f2160503be28ea0f9051 (diff) |
Use `bool` instead of `Option<bool>` and print it's value only when `true`
Diffstat (limited to 'crates/ra_lsp_server/src/conv.rs')
-rw-r--r-- | crates/ra_lsp_server/src/conv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs index a4667d284..94ed619fa 100644 --- a/crates/ra_lsp_server/src/conv.rs +++ b/crates/ra_lsp_server/src/conv.rs | |||
@@ -127,7 +127,7 @@ impl ConvWith<(&LineIndex, LineEndings)> for CompletionItem { | |||
127 | text_edit: Some(text_edit), | 127 | text_edit: Some(text_edit), |
128 | additional_text_edits: Some(additional_text_edits), | 128 | additional_text_edits: Some(additional_text_edits), |
129 | documentation: self.documentation().map(|it| it.conv()), | 129 | documentation: self.documentation().map(|it| it.conv()), |
130 | deprecated: self.deprecated(), | 130 | deprecated: Some(self.deprecated()), |
131 | ..Default::default() | 131 | ..Default::default() |
132 | }; | 132 | }; |
133 | res.insert_text_format = Some(match self.insert_text_format() { | 133 | res.insert_text_format = Some(match self.insert_text_format() { |