Address review comments

This commit is contained in:
Jonas Schievink 2020-06-26 12:04:11 +02:00
parent 8a96815d00
commit c441306427

View file

@ -281,6 +281,7 @@ pub fn iterate_method_candidates<T>(
name,
mode,
&mut |ty, item| {
assert!(slot.is_none());
slot = callback(ty, item);
slot.is_some()
},
@ -288,7 +289,7 @@ pub fn iterate_method_candidates<T>(
slot
}
pub fn iterate_method_candidates_impl(
fn iterate_method_candidates_impl(
ty: &Canonical<Ty>,
db: &dyn HirDatabase,
env: Arc<TraitEnvironment>,