We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5982d9c commit b857a0bCopy full SHA for b857a0b
crates/rust-analyzer/src/lsp/to_proto.rs
@@ -339,7 +339,7 @@ fn completion_item(
339
something_to_resolve = item.detail.is_some();
340
None
341
} else {
342
- item.detail
+ item.detail.clone()
343
};
344
345
let documentation = if fields_to_resolve.resolve_documentation {
@@ -370,7 +370,7 @@ fn completion_item(
370
371
lsp_item.label_details = Some(lsp_types::CompletionItemLabelDetails {
372
detail: item.label_detail.as_ref().map(ToString::to_string),
373
- description: lsp_item.detail.clone(),
+ description: item.detail,
374
});
375
}
376
} else if let Some(label_detail) = item.label_detail {
0 commit comments