From d9905f7be52c17335fb529a63b2afbefee7466b4 Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Wed, 13 Feb 2019 17:28:15 +0200 Subject: Use clone directly rather than map + clone --- crates/ra_ide_api/src/navigation_target.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src') 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 { 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(), } } -- cgit v1.2.3