aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-02-12 10:32:34 +0000
committerAleksey Kladov <[email protected]>2019-02-12 10:32:34 +0000
commit60524771fd480887574c42dc735852287d7ee098 (patch)
treedfa03425ccdb6a097415d11d26c90769e2404954 /crates/ra_hir/src/ty
parentfa2e6e0bda280004d7dd26b9edb0f9322552701d (diff)
replace clone with copy
Diffstat (limited to 'crates/ra_hir/src/ty')
-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 }