aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r--crates/ra_hir/src/ty/method_resolution.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs
index 0e18684ed..9988570e8 100644
--- a/crates/ra_hir/src/ty/method_resolution.rs
+++ b/crates/ra_hir/src/ty/method_resolution.rs
@@ -261,8 +261,8 @@ fn iterate_trait_method_candidates<T>(
261 // trait, but if we find out it doesn't, we'll skip the rest of the 261 // trait, but if we find out it doesn't, we'll skip the rest of the
262 // iteration 262 // iteration
263 let mut known_implemented = false; 263 let mut known_implemented = false;
264 for &item in data.items.iter() { 264 for (_name, item) in data.items.iter() {
265 if !is_valid_candidate(db, name, mode, item.into()) { 265 if !is_valid_candidate(db, name, mode, (*item).into()) {
266 continue; 266 continue;
267 } 267 }
268 if !known_implemented { 268 if !known_implemented {
@@ -272,7 +272,7 @@ fn iterate_trait_method_candidates<T>(
272 } 272 }
273 } 273 }
274 known_implemented = true; 274 known_implemented = true;
275 if let Some(result) = callback(&ty.value, item.into()) { 275 if let Some(result) = callback(&ty.value, (*item).into()) {
276 return Some(result); 276 return Some(result);
277 } 277 }
278 } 278 }