Skip to content

Commit 74c3e7a

Browse files
committed
Remove unnecessary return
1 parent b0c8a2b commit 74c3e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub(crate) fn extract_struct_from_enum_variant(
5252
ImportsLocator::new(ctx.db).find_imports(&enum_name).first()?.left()?;
5353
let current_module = current_module_def.module(ctx.db)?;
5454
let target = variant.syntax().text_range();
55-
return acc.add_in_multiple_files(
55+
acc.add_in_multiple_files(
5656
AssistId("extract_struct_from_enum_variant"),
5757
"Extract struct from enum variant",
5858
target,
@@ -85,7 +85,7 @@ pub(crate) fn extract_struct_from_enum_variant(
8585
let list_range = field_list.syntax().text_range();
8686
update_variant(edit, &variant_name, ctx.frange.file_id, list_range);
8787
},
88-
);
88+
)
8989
}
9090

9191
fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVariant) -> bool {

0 commit comments

Comments
 (0)