Skip to content

Commit 6052477

Browse files
committed
replace clone with copy
1 parent fa2e6e0 commit 6052477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ra_hir/src/ty/method_resolution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl Ty {
163163
for item in impl_block.items() {
164164
match item {
165165
ImplItem::Method(f) => {
166-
if let Some(result) = callback(f.clone()) {
166+
if let Some(result) = callback(*f) {
167167
return Some(result);
168168
}
169169
}

0 commit comments

Comments
 (0)