Use clone directly rather than map + clone

This commit is contained in:
Ville Penttinen 2019-02-13 17:28:15 +02:00
parent 2ef6c469ef
commit d9905f7be5

View file

@ -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(),
}
}