From db61d4ea13113cd6c4e0661075ea9b2f739be862 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 7 Mar 2021 11:58:43 +0200 Subject: Rebase leftovers --- crates/ide_completion/src/item.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index 06f16a2c7..9b039e3e5 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs @@ -283,11 +283,8 @@ impl ImportEdit { pub fn to_text_edit(&self, cfg: InsertUseConfig) -> Option { let _p = profile::span("ImportEdit::to_text_edit"); - let rewriter = insert_use::insert_use( - &self.scope, - mod_path_to_ast(&self.import.import_path), - cfg, - ); + let rewriter = + insert_use::insert_use(&self.scope, mod_path_to_ast(&self.import.import_path), cfg); let old_ast = rewriter.rewrite_root()?; let mut import_insert = TextEdit::builder(); algo::diff(&old_ast, &rewriter.rewrite(&old_ast)).into_text_edit(&mut import_insert); -- cgit v1.2.3