From 36fadc4224622d8bfd220d37d4c19931f6cfc6c6 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Thu, 23 Jun 2022 16:05:59 +0200 Subject: [PATCH] Fix unstable feature use --- crates/hir-ty/src/method_resolution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir-ty/src/method_resolution.rs b/crates/hir-ty/src/method_resolution.rs index a15514283b5..76c76ee6cf4 100644 --- a/crates/hir-ty/src/method_resolution.rs +++ b/crates/hir-ty/src/method_resolution.rs @@ -589,7 +589,7 @@ pub fn lookup_impl_method( let mut table = InferenceTable::new(db, env.clone()); find_matching_impl(impls, &mut table, &self_ty).and_then(|data| { data.items.iter().find_map(|it| match it { - AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then_some(*f), + AssocItemId::FunctionId(f) => (db.function_data(*f).name == *name).then(|| *f), _ => None, }) })