Rewrite label_details_support condition to be consistent with other parts of the codebase.

This commit is contained in:
Jason Boatman 2024-10-23 13:19:53 -05:00
parent d5ca001578
commit eed86dd597

View file

@ -210,10 +210,7 @@ impl ClientCapabilities {
.completion_item .completion_item
.as_ref()? .as_ref()?
.label_details_support .label_details_support
.as_ref() })() == Some(true)
})()
.copied()
.unwrap_or_default()
} }
fn completion_item(&self) -> Option<CompletionOptionsCompletionItem> { fn completion_item(&self) -> Option<CompletionOptionsCompletionItem> {