diff options
Diffstat (limited to 'crates/assists/src/utils.rs')
-rw-r--r-- | crates/assists/src/utils.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/assists/src/utils.rs b/crates/assists/src/utils.rs index d41084b59..7ee7111ae 100644 --- a/crates/assists/src/utils.rs +++ b/crates/assists/src/utils.rs | |||
@@ -99,9 +99,9 @@ pub fn filter_assoc_items( | |||
99 | items | 99 | items |
100 | .iter() | 100 | .iter() |
101 | .map(|i| match i { | 101 | .map(|i| match i { |
102 | hir::AssocItem::Function(i) => ast::AssocItem::Fn(i.source(db).value), | 102 | hir::AssocItem::Function(i) => ast::AssocItem::Fn(i.source_old(db).value), |
103 | hir::AssocItem::TypeAlias(i) => ast::AssocItem::TypeAlias(i.source(db).value), | 103 | hir::AssocItem::TypeAlias(i) => ast::AssocItem::TypeAlias(i.source_old(db).value), |
104 | hir::AssocItem::Const(i) => ast::AssocItem::Const(i.source(db).value), | 104 | hir::AssocItem::Const(i) => ast::AssocItem::Const(i.source_old(db).value), |
105 | }) | 105 | }) |
106 | .filter(has_def_name) | 106 | .filter(has_def_name) |
107 | .filter(|it| match it { | 107 | .filter(|it| match it { |