Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs')
| -rw-r--r-- | crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs b/crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs index c0fd69779a..d0e82d69eb 100644 --- a/crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs +++ b/crates/ide-assists/src/handlers/convert_nested_function_to_closure.rs @@ -29,7 +29,7 @@ use crate::assist_context::{AssistContext, Assists}; // ``` pub(crate) fn convert_nested_function_to_closure( acc: &mut Assists, - ctx: &AssistContext<'_>, + ctx: &AssistContext<'_, '_>, ) -> Option<()> { let name = ctx.find_node_at_offset::<ast::Name>()?; let function = name.syntax().parent().and_then(ast::Fn::cast)?; |