aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMikhail Rakhmanov <[email protected]>2020-06-05 10:45:41 +0100
committerMikhail Rakhmanov <[email protected]>2020-06-05 10:45:41 +0100
commit74c3e7a1adf9d14bbac5cbbe9cd893d758f82561 (patch)
tree1477c3fac3e81c8fd3d87d185c314ddb8e8c4906 /crates
parentb0c8a2be7bd0d053eb9dd0e02fe2cf08b093a19a (diff)
Remove unnecessary return
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs4
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
91fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVariant) -> bool { 91fn existing_struct_def(db: &RootDatabase, variant_name: &str, variant: &EnumVariant) -> bool {