diff options
author | Kirill Bulatov <[email protected]> | 2020-11-24 21:25:13 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-11-27 16:28:41 +0000 |
commit | f4ae3650d855554575f866264a3c8197dfd12835 (patch) | |
tree | 5db591ff6ed18f196ddde87858d14e9b9ded6dc6 /crates/assists/src/handlers/replace_derive_with_manual_impl.rs | |
parent | 0993f9067cfc14cded484906283d1df8e8741e8e (diff) |
Extract the import code into the shared module
Diffstat (limited to 'crates/assists/src/handlers/replace_derive_with_manual_impl.rs')
-rw-r--r-- | crates/assists/src/handlers/replace_derive_with_manual_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/assists/src/handlers/replace_derive_with_manual_impl.rs index 453a6cebf..fe262377c 100644 --- a/crates/assists/src/handlers/replace_derive_with_manual_impl.rs +++ b/crates/assists/src/handlers/replace_derive_with_manual_impl.rs | |||
@@ -1,4 +1,5 @@ | |||
1 | use ide_db::imports_locator; | 1 | use ide_db::imports_locator; |
2 | use ide_helpers::mod_path_to_ast; | ||
2 | use itertools::Itertools; | 3 | use itertools::Itertools; |
3 | use syntax::{ | 4 | use syntax::{ |
4 | ast::{self, make, AstNode}, | 5 | ast::{self, make, AstNode}, |
@@ -10,8 +11,7 @@ use syntax::{ | |||
10 | use crate::{ | 11 | use crate::{ |
11 | assist_context::{AssistBuilder, AssistContext, Assists}, | 12 | assist_context::{AssistBuilder, AssistContext, Assists}, |
12 | utils::{ | 13 | utils::{ |
13 | add_trait_assoc_items_to_impl, filter_assoc_items, mod_path_to_ast, render_snippet, Cursor, | 14 | add_trait_assoc_items_to_impl, filter_assoc_items, render_snippet, Cursor, DefaultMethods, |
14 | DefaultMethods, | ||
15 | }, | 15 | }, |
16 | AssistId, AssistKind, | 16 | AssistId, AssistKind, |
17 | }; | 17 | }; |