We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f410fdf commit 36fadc4Copy full SHA for 36fadc4
crates/hir-ty/src/method_resolution.rs
@@ -589,7 +589,7 @@ pub fn lookup_impl_method(
589
let mut table = InferenceTable::new(db, env.clone());
590
find_matching_impl(impls, &mut table, &self_ty).and_then(|data| {
591
data.items.iter().find_map(|it| match it {
592
- AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then_some(*f),
+ AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then(|| *f),
593
_ => None,
594
})
595
0 commit comments