mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +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…
Reference in a new issue