mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Don't reconstruct ref match completion in to_proto manually
This commit is contained in:
parent
026a8c976d
commit
23fc596e40
3 changed files with 21 additions and 20 deletions
|
@ -529,8 +529,7 @@ mod tests {
|
|||
let relevance = display_relevance(it.relevance());
|
||||
items.push(format!("{tag} {} {relevance}\n", it.label()));
|
||||
|
||||
if let Some((mutability, _offset, relevance)) = it.ref_match() {
|
||||
let label = format!("&{}{}", mutability.as_keyword_for_ref(), it.label());
|
||||
if let Some((label, _indel, relevance)) = it.ref_match() {
|
||||
let relevance = display_relevance(relevance);
|
||||
|
||||
items.push(format!("{tag} {label} {relevance}\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue