diff options
author | Mikhail Rakhmanov <[email protected]> | 2020-05-22 21:43:52 +0100 |
---|---|---|
committer | Mikhail Rakhmanov <[email protected]> | 2020-05-22 21:43:52 +0100 |
commit | 04a35784df4cf267a8bbce6d5542869ed1a52fcb (patch) | |
tree | 82a79f605994d9573b15b12f3561a6744045afae /crates/ra_assists/src/handlers | |
parent | 5cd4eb6dd6d8c733077a6aeea5d2cc0812ded096 (diff) |
Formatting and remove unused imports
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r-- | crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs | 7 |
1 files changed, 5 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 6e19a6feb..57907a503 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 | |||
@@ -16,9 +16,9 @@ use crate::{ | |||
16 | }; | 16 | }; |
17 | use ast::{ArgListOwner, VisibilityOwner}; | 17 | use ast::{ArgListOwner, VisibilityOwner}; |
18 | use hir::{EnumVariant, Module, ModuleDef}; | 18 | use hir::{EnumVariant, Module, ModuleDef}; |
19 | use ra_db::FileId; | ||
19 | use ra_fmt::leading_indent; | 20 | use ra_fmt::leading_indent; |
20 | use rustc_hash::FxHashSet; | 21 | use rustc_hash::FxHashSet; |
21 | use ra_db::FileId; | ||
22 | 22 | ||
23 | // Assist extract_struct_from_enum | 23 | // Assist extract_struct_from_enum |
24 | // | 24 | // |
@@ -229,7 +229,10 @@ fn list_with_visibility(list: &str) -> String { | |||
229 | #[cfg(test)] | 229 | #[cfg(test)] |
230 | mod tests { | 230 | mod tests { |
231 | 231 | ||
232 | use crate::{utils::FamousDefs, tests::{check_assist, check_assist_not_applicable}}; | 232 | use crate::{ |
233 | tests::{check_assist, check_assist_not_applicable}, | ||
234 | utils::FamousDefs, | ||
235 | }; | ||
233 | 236 | ||
234 | use super::*; | 237 | use super::*; |
235 | 238 | ||