aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-02-09 15:25:05 +0000
committerKirill Bulatov <[email protected]>2020-02-09 15:25:51 +0000
commitd39d4016121d19c77e3d8c417a5bcc58a3b06530 (patch)
tree925a31e3a5d5cb6787d44ce1fc44505665d3df07 /crates/ra_assists/src/handlers
parent48abcaaabe5cba0cfbada902652c97146a047372 (diff)
Fix rebase leftovers
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r--crates/ra_assists/src/handlers/auto_import.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/handlers/auto_import.rs b/crates/ra_assists/src/handlers/auto_import.rs
index 1081c9a5b..1fb701da5 100644
--- a/crates/ra_assists/src/handlers/auto_import.rs
+++ b/crates/ra_assists/src/handlers/auto_import.rs
@@ -69,10 +69,10 @@ pub(crate) fn auto_import(ctx: AssistCtx) -> Option<Assist> {
69 let mut group = ctx.add_assist_group(format!("Import {}", name_to_import)); 69 let mut group = ctx.add_assist_group(format!("Import {}", name_to_import));
70 for import in proposed_imports { 70 for import in proposed_imports {
71 group.add_assist(AssistId("auto_import"), format!("Import `{}`", &import), |edit| { 71 group.add_assist(AssistId("auto_import"), format!("Import `{}`", &import), |edit| {
72 edit.target(path_to_import_syntax.text_range()); 72 edit.target(path_under_caret.syntax().text_range());
73 insert_use_statement( 73 insert_use_statement(
74 &position, 74 &position,
75 &path_under_caret.syntax(), 75 path_under_caret.syntax(),
76 &import, 76 &import,
77 edit.text_edit_builder(), 77 edit.text_edit_builder(),
78 ); 78 );