Skip to content

Commit d9905f7

Browse files
committed
Use clone directly rather than map + clone
1 parent 2ef6c46 commit d9905f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_ide_api/src/navigation_target.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl NavigationTarget {
5858
kind: symbol.ptr.kind(),
5959
full_range: symbol.ptr.range(),
6060
focus_range: None,
61-
container_name: symbol.container_name.map(|v| v.clone()),
61+
container_name: symbol.container_name.clone(),
6262
}
6363
}
6464

0 commit comments

Comments
 (0)