mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Use clone directly rather than map + clone
This commit is contained in:
parent
2ef6c469ef
commit
d9905f7be5
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ impl NavigationTarget {
|
|||
kind: symbol.ptr.kind(),
|
||||
full_range: symbol.ptr.range(),
|
||||
focus_range: None,
|
||||
container_name: symbol.container_name.map(|v| v.clone()),
|
||||
container_name: symbol.container_name.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue