Skip to content

Commit 36fadc4

Browse files
committed
Fix unstable feature use
1 parent f410fdf commit 36fadc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/method_resolution.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ pub fn lookup_impl_method(
589589
let mut table = InferenceTable::new(db, env.clone());
590590
find_matching_impl(impls, &mut table, &self_ty).and_then(|data| {
591591
data.items.iter().find_map(|it| match it {
592-
AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then_some(*f),
592+
AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then(|| *f),
593593
_ => None,
594594
})
595595
})

0 commit comments

Comments
 (0)