Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/references.rs')
| -rw-r--r-- | crates/ide/src/references.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs index 71c42cc8b5..2487543dcf 100644 --- a/crates/ide/src/references.rs +++ b/crates/ide/src/references.rs @@ -124,11 +124,11 @@ pub(crate) fn find_all_refs( } } -pub(crate) fn find_defs<'a>( - sema: &'a Semantics<'_, RootDatabase>, +pub(crate) fn find_defs( + sema: &Semantics<'_, RootDatabase>, syntax: &SyntaxNode, offset: TextSize, -) -> Option<impl IntoIterator<Item = Definition> + 'a> { +) -> Option<Vec<Definition>> { let token = syntax.token_at_offset(offset).find(|t| { matches!( t.kind(), |