diff options
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs index 72e5dd735..ef963ddba 100644 --- a/crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs | |||
@@ -52,7 +52,7 @@ pub(crate) fn extract_struct_from_enum_variant( | |||
52 | ImportsLocator::new(ctx.db).find_imports(&enum_name).first()?.left()?; | 52 | ImportsLocator::new(ctx.db).find_imports(&enum_name).first()?.left()?; |
53 | let current_module = current_module_def.module(ctx.db)?; | 53 | let current_module = current_module_def.module(ctx.db)?; |
54 | let target = variant.syntax().text_range(); | 54 | let target = variant.syntax().text_range(); |
55 | return acc.add_in_multiple_files( | 55 | acc.add_in_multiple_files( |
56 | AssistId("extract_struct_from_enum_variant"), | 56 | AssistId("extract_struct_from_enum_variant"), |
57 | "Extract struct from enum variant", | 57 | "Extract struct from enum variant", |
58 | target, | 58 | target, |
@@ -85,7 +85,7 @@ pub(crate) fn extract_struct_from_enum_variant( | |||
85 | let list_range = field_list.syntax().text_range(); | 85 | let list_range = field_list.syntax().text_range(); |
86 | update_variant(edit, &variant_name, ctx.frange.file_id, list_range); | 86 | update_variant(edit, &variant_name, ctx.frange.file_id, list_range); |
87 | }, | 87 | }, |
88 | ); | 88 | ) |
89 | } | 89 | } |
90 | 90 | ||
91 | fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVariant) -> bool { | 91 | fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVariant) -> bool { |