Run cargo fix --edition-idioms
This commit is contained in:
@@ -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>)> {
|
||||
|
||||
Reference in New Issue
Block a user