From d39d4016121d19c77e3d8c417a5bcc58a3b06530 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 9 Feb 2020 17:25:05 +0200 Subject: Fix rebase leftovers --- crates/ra_assists/src/handlers/auto_import.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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 { let mut group = ctx.add_assist_group(format!("Import {}", name_to_import)); for import in proposed_imports { group.add_assist(AssistId("auto_import"), format!("Import `{}`", &import), |edit| { - edit.target(path_to_import_syntax.text_range()); + edit.target(path_under_caret.syntax().text_range()); insert_use_statement( &position, - &path_under_caret.syntax(), + path_under_caret.syntax(), &import, edit.text_edit_builder(), ); -- cgit v1.2.3