Fix rebase leftovers

This commit is contained in:
Kirill Bulatov 2020-02-09 17:25:05 +02:00
parent 48abcaaabe
commit d39d401612

View file

@ -69,10 +69,10 @@ pub(crate) fn auto_import(ctx: AssistCtx) -> Option<Assist> {
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(),
);