aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/ty/method_resolution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs
index 9eda0092e..b8e911b88 100644
--- a/crates/ra_hir/src/ty/method_resolution.rs
+++ b/crates/ra_hir/src/ty/method_resolution.rs
@@ -163,7 +163,7 @@ impl Ty {
163 for item in impl_block.items() { 163 for item in impl_block.items() {
164 match item { 164 match item {
165 ImplItem::Method(f) => { 165 ImplItem::Method(f) => {
166 if let Some(result) = callback(f.clone()) { 166 if let Some(result) = callback(*f) {
167 return Some(result); 167 return Some(result);
168 } 168 }
169 } 169 }