Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/active_parameter.rs')
| -rw-r--r-- | crates/ide-db/src/active_parameter.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-db/src/active_parameter.rs b/crates/ide-db/src/active_parameter.rs index 788a5ed17e..7303ef8b7b 100644 --- a/crates/ide-db/src/active_parameter.rs +++ b/crates/ide-db/src/active_parameter.rs @@ -17,7 +17,7 @@ pub struct ActiveParameter { impl ActiveParameter { /// Returns information about the call argument this token is part of. - pub fn at_token(sema: &Semantics<RootDatabase>, token: SyntaxToken) -> Option<Self> { + pub fn at_token(sema: &Semantics<'_, RootDatabase>, token: SyntaxToken) -> Option<Self> { let (signature, active_parameter) = callable_for_token(sema, token)?; let idx = active_parameter?; @@ -40,7 +40,7 @@ impl ActiveParameter { /// Returns a [`hir::Callable`] this token is a part of and its argument index of said callable. pub fn callable_for_token( - sema: &Semantics<RootDatabase>, + sema: &Semantics<'_, RootDatabase>, token: SyntaxToken, ) -> Option<(hir::Callable, Option<usize>)> { // Find the calling expression and its NameRef @@ -54,7 +54,7 @@ pub fn callable_for_token( } pub fn callable_for_node( - sema: &Semantics<RootDatabase>, + sema: &Semantics<'_, RootDatabase>, calling_node: &ast::CallableExpr, token: &SyntaxToken, ) -> Option<(hir::Callable, Option<usize>)> { |