aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-06-26 11:04:11 +0100
committerJonas Schievink <[email protected]>2020-06-26 11:04:11 +0100
commitc4413064277090764653d20db9b94ea16dfcb494 (patch)
tree368a6dc2f4dbd8006bec5e809e530e4d4de421f8 /crates/ra_hir_ty
parent8a96815d009b688819dd7a8af28e989de61305d1 (diff)
Address review comments
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r--crates/ra_hir_ty/src/method_resolution.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/method_resolution.rs b/crates/ra_hir_ty/src/method_resolution.rs
index 8b59a8bd6..c19519cf1 100644
--- a/crates/ra_hir_ty/src/method_resolution.rs
+++ b/crates/ra_hir_ty/src/method_resolution.rs
@@ -281,6 +281,7 @@ pub fn iterate_method_candidates<T>(
281 name, 281 name,
282 mode, 282 mode,
283 &mut |ty, item| { 283 &mut |ty, item| {
284 assert!(slot.is_none());
284 slot = callback(ty, item); 285 slot = callback(ty, item);
285 slot.is_some() 286 slot.is_some()
286 }, 287 },
@@ -288,7 +289,7 @@ pub fn iterate_method_candidates<T>(
288 slot 289 slot
289} 290}
290 291
291pub fn iterate_method_candidates_impl( 292fn iterate_method_candidates_impl(
292 ty: &Canonical<Ty>, 293 ty: &Canonical<Ty>,
293 db: &dyn HirDatabase, 294 db: &dyn HirDatabase,
294 env: Arc<TraitEnvironment>, 295 env: Arc<TraitEnvironment>,