mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Fix unstable feature use
This commit is contained in:
parent
f410fdf6e3
commit
36fadc4224
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,7 @@ pub fn lookup_impl_method(
|
||||||
let mut table = InferenceTable::new(db, env.clone());
|
let mut table = InferenceTable::new(db, env.clone());
|
||||||
find_matching_impl(impls, &mut table, &self_ty).and_then(|data| {
|
find_matching_impl(impls, &mut table, &self_ty).and_then(|data| {
|
||||||
data.items.iter().find_map(|it| match it {
|
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,
|
_ => None,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue