aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers/replace_derive_with_manual_impl.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-11-24 21:25:13 +0000
committerKirill Bulatov <[email protected]>2020-11-27 16:28:41 +0000
commitf4ae3650d855554575f866264a3c8197dfd12835 (patch)
tree5db591ff6ed18f196ddde87858d14e9b9ded6dc6 /crates/assists/src/handlers/replace_derive_with_manual_impl.rs
parent0993f9067cfc14cded484906283d1df8e8741e8e (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.rs4
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 @@
1use ide_db::imports_locator; 1use ide_db::imports_locator;
2use ide_helpers::mod_path_to_ast;
2use itertools::Itertools; 3use itertools::Itertools;
3use syntax::{ 4use syntax::{
4 ast::{self, make, AstNode}, 5 ast::{self, make, AstNode},
@@ -10,8 +11,7 @@ use syntax::{
10use crate::{ 11use 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};