diff options
Diffstat (limited to 'crates/ide_assists')
-rw-r--r-- | crates/ide_assists/src/handlers/extract_type_alias.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide_assists/src/handlers/extract_type_alias.rs b/crates/ide_assists/src/handlers/extract_type_alias.rs index 4bccf5984..eac8857c6 100644 --- a/crates/ide_assists/src/handlers/extract_type_alias.rs +++ b/crates/ide_assists/src/handlers/extract_type_alias.rs | |||
@@ -31,7 +31,7 @@ pub(crate) fn extract_type_alias(acc: &mut Assists, ctx: &AssistContext) -> Opti | |||
31 | let item = ctx.find_node_at_offset::<ast::Item>()?; | 31 | let item = ctx.find_node_at_offset::<ast::Item>()?; |
32 | let insert = match_ast! { | 32 | let insert = match_ast! { |
33 | match (item.syntax().parent()?) { | 33 | match (item.syntax().parent()?) { |
34 | ast::AssocItemList(it) => it.syntax().parent()?.clone(), | 34 | ast::AssocItemList(it) => it.syntax().parent()?, |
35 | _ => item.syntax().clone(), | 35 | _ => item.syntax().clone(), |
36 | } | 36 | } |
37 | }; | 37 | }; |