Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/generate_enum_projection_method.rs')
| -rw-r--r-- | crates/ide-assists/src/handlers/generate_enum_projection_method.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/ide-assists/src/handlers/generate_enum_projection_method.rs b/crates/ide-assists/src/handlers/generate_enum_projection_method.rs index 9a97ad1e8f..4cdc801ec1 100644 --- a/crates/ide-assists/src/handlers/generate_enum_projection_method.rs +++ b/crates/ide-assists/src/handlers/generate_enum_projection_method.rs @@ -40,7 +40,7 @@ use crate::{ // ``` pub(crate) fn generate_enum_try_into_method( acc: &mut Assists, - ctx: &AssistContext<'_>, + ctx: &AssistContext<'_, '_>, ) -> Option<()> { generate_enum_projection_method( acc, @@ -85,7 +85,10 @@ pub(crate) fn generate_enum_try_into_method( // } // } // ``` -pub(crate) fn generate_enum_as_method(acc: &mut Assists, ctx: &AssistContext<'_>) -> Option<()> { +pub(crate) fn generate_enum_as_method( + acc: &mut Assists, + ctx: &AssistContext<'_, '_>, +) -> Option<()> { generate_enum_projection_method( acc, ctx, @@ -113,7 +116,7 @@ struct ProjectionProps { fn generate_enum_projection_method( acc: &mut Assists, - ctx: &AssistContext<'_>, + ctx: &AssistContext<'_, '_>, assist_id: &'static str, assist_description: &str, props: ProjectionProps, |