diff options
author | Kirill Bulatov <[email protected]> | 2020-11-28 14:30:39 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-11-28 14:30:39 +0000 |
commit | 3f612d37c68a6e4c09e407b7cd2ad8a1d17ab4e6 (patch) | |
tree | e51b5ce814d08c79bd667719992c8b7254e4eb68 /crates/assists/src/handlers/extract_struct_from_enum_variant.rs | |
parent | 7b145bd99c855b2f4a15835a2298dde504b04d8f (diff) |
Move the helpers into ide_db
Diffstat (limited to 'crates/assists/src/handlers/extract_struct_from_enum_variant.rs')
-rw-r--r-- | crates/assists/src/handlers/extract_struct_from_enum_variant.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs index fddd5354a..d85767b4e 100644 --- a/crates/assists/src/handlers/extract_struct_from_enum_variant.rs +++ b/crates/assists/src/handlers/extract_struct_from_enum_variant.rs | |||
@@ -2,11 +2,11 @@ use std::iter; | |||
2 | 2 | ||
3 | use either::Either; | 3 | use either::Either; |
4 | use hir::{AsName, EnumVariant, Module, ModuleDef, Name}; | 4 | use hir::{AsName, EnumVariant, Module, ModuleDef, Name}; |
5 | use ide_db::{defs::Definition, search::Reference, RootDatabase}; | 5 | use ide_db::helpers::{ |
6 | use ide_helpers::{ | ||
7 | insert_use::{insert_use, ImportScope}, | 6 | insert_use::{insert_use, ImportScope}, |
8 | mod_path_to_ast, | 7 | mod_path_to_ast, |
9 | }; | 8 | }; |
9 | use ide_db::{defs::Definition, search::Reference, RootDatabase}; | ||
10 | use rustc_hash::{FxHashMap, FxHashSet}; | 10 | use rustc_hash::{FxHashMap, FxHashSet}; |
11 | use syntax::{ | 11 | use syntax::{ |
12 | algo::{find_node_at_offset, SyntaxRewriter}, | 12 | algo::{find_node_at_offset, SyntaxRewriter}, |
@@ -237,7 +237,7 @@ fn update_reference( | |||
237 | 237 | ||
238 | #[cfg(test)] | 238 | #[cfg(test)] |
239 | mod tests { | 239 | mod tests { |
240 | use ide_helpers::FamousDefs; | 240 | use ide_db::helpers::FamousDefs; |
241 | 241 | ||
242 | use crate::tests::{check_assist, check_assist_not_applicable}; | 242 | use crate::tests::{check_assist, check_assist_not_applicable}; |
243 | 243 | ||