From a3a722de9ffaefdd0a46194e7ea2edac9754fd38 Mon Sep 17 00:00:00 2001 From: unexge Date: Fri, 15 Jan 2021 22:14:51 +0300 Subject: Add Unmerge Use assist --- crates/ide_db/src/helpers/insert_use.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ide_db') diff --git a/crates/ide_db/src/helpers/insert_use.rs b/crates/ide_db/src/helpers/insert_use.rs index 0c180e9bc..d2f9f5d25 100644 --- a/crates/ide_db/src/helpers/insert_use.rs +++ b/crates/ide_db/src/helpers/insert_use.rs @@ -97,7 +97,7 @@ pub fn insert_use<'a>( ) -> SyntaxRewriter<'a> { let _p = profile::span("insert_use"); let mut rewriter = SyntaxRewriter::default(); - let use_item = make::use_(make::use_tree(path.clone(), None, None, false)); + let use_item = make::use_(None, make::use_tree(path.clone(), None, None, false)); // merge into existing imports if possible if let Some(mb) = merge { for existing_use in scope.as_syntax_node().children().filter_map(ast::Use::cast) { -- cgit v1.2.3