From 2ee090faaf69474a2baadf0494ef3c6ed4fdbcbc Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 18 Jun 2021 23:11:56 +0200 Subject: Allow to disable import insertion on single path glob imports --- crates/ide_completion/src/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_completion/src/item.rs') diff --git a/crates/ide_completion/src/item.rs b/crates/ide_completion/src/item.rs index 99edb9499..ae63d132e 100644 --- a/crates/ide_completion/src/item.rs +++ b/crates/ide_completion/src/item.rs @@ -378,7 +378,7 @@ impl ImportEdit { let _p = profile::span("ImportEdit::to_text_edit"); let new_ast = self.scope.clone_for_update(); - insert_use::insert_use(&new_ast, mod_path_to_ast(&self.import.import_path), cfg); + insert_use::insert_use(&new_ast, mod_path_to_ast(&self.import.import_path), &cfg); let mut import_insert = TextEdit::builder(); algo::diff(self.scope.as_syntax_node(), new_ast.as_syntax_node()) .into_text_edit(&mut import_insert); -- cgit v1.2.3