diff options
Diffstat (limited to 'crates/ra_assists/src/handlers/extract_struct_from_enum_variant.rs')
-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 ccec688ca..6e9f2d0fc 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 | |||
@@ -2,12 +2,12 @@ use hir::{EnumVariant, Module, ModuleDef, Name}; | |||
2 | use ra_db::FileId; | 2 | use ra_db::FileId; |
3 | use ra_fmt::leading_indent; | 3 | use ra_fmt::leading_indent; |
4 | use ra_ide_db::{defs::Definition, search::Reference, RootDatabase}; | 4 | use ra_ide_db::{defs::Definition, search::Reference, RootDatabase}; |
5 | use ra_syntax::{ | 5 | use rustc_hash::FxHashSet; |
6 | use syntax::{ | ||
6 | algo::find_node_at_offset, | 7 | algo::find_node_at_offset, |
7 | ast::{self, ArgListOwner, AstNode, NameOwner, VisibilityOwner}, | 8 | ast::{self, ArgListOwner, AstNode, NameOwner, VisibilityOwner}, |
8 | SourceFile, SyntaxNode, TextRange, TextSize, | 9 | SourceFile, SyntaxNode, TextRange, TextSize, |
9 | }; | 10 | }; |
10 | use rustc_hash::FxHashSet; | ||
11 | 11 | ||
12 | use crate::{ | 12 | use crate::{ |
13 | assist_context::AssistBuilder, utils::insert_use_statement, AssistContext, AssistId, | 13 | assist_context::AssistBuilder, utils::insert_use_statement, AssistContext, AssistId, |