aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-02-13 15:28:15 +0000
committerVille Penttinen <[email protected]>2019-02-13 15:28:15 +0000
commitd9905f7be52c17335fb529a63b2afbefee7466b4 (patch)
tree442ec0921d22464b8851732c5b36033d62f137c8 /crates/ra_ide_api/src
parent2ef6c469ef15fd951a2a18ac6c0767f1a3024ae5 (diff)
Use clone directly rather than map + clone
Diffstat (limited to 'crates/ra_ide_api/src')
-rw-r--r--crates/ra_ide_api/src/navigation_target.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/navigation_target.rs b/crates/ra_ide_api/src/navigation_target.rs
index bcacbe6fc..c559dca11 100644
--- a/crates/ra_ide_api/src/navigation_target.rs
+++ b/crates/ra_ide_api/src/navigation_target.rs
@@ -58,7 +58,7 @@ impl NavigationTarget {
58 kind: symbol.ptr.kind(), 58 kind: symbol.ptr.kind(),
59 full_range: symbol.ptr.range(), 59 full_range: symbol.ptr.range(),
60 focus_range: None, 60 focus_range: None,
61 container_name: symbol.container_name.map(|v| v.clone()), 61 container_name: symbol.container_name.clone(),
62 } 62 }
63 } 63 }
64 64