Skip to content

Commit bc6b2ec

Browse files
committed
Rewrite label_details_support condition to be consistent with other parts of the codebase.
1 parent d7f137e commit bc6b2ec

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/lsp/capabilities.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,7 @@ impl ClientCapabilities {
210210
.completion_item
211211
.as_ref()?
212212
.label_details_support
213-
.as_ref()
214-
})()
215-
.copied()
216-
.unwrap_or_default()
213+
})() == Some(true)
217214
}
218215

219216
fn completion_item(&self) -> Option<CompletionOptionsCompletionItem> {

0 commit comments

Comments
 (0)