aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/assists/src/handlers/expand_glob_import.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/assists/src/handlers/expand_glob_import.rs b/crates/assists/src/handlers/expand_glob_import.rs
index ff9c80d49..f9a08e84e 100644
--- a/crates/assists/src/handlers/expand_glob_import.rs
+++ b/crates/assists/src/handlers/expand_glob_import.rs
@@ -183,10 +183,12 @@ fn replace_ast(
183) { 183) {
184 let existing_use_trees = match parent.clone() { 184 let existing_use_trees = match parent.clone() {
185 Either::Left(_) => vec![], 185 Either::Left(_) => vec![],
186 Either::Right(u) => u.use_trees().filter(|n| 186 Either::Right(u) => u
187 .use_trees()
188 .filter(|n|
187 // filter out star 189 // filter out star
188 n.star_token().is_none() 190 n.star_token().is_none())
189 ).collect(), 191 .collect(),
190 }; 192 };
191 193
192 let new_use_trees: Vec<ast::UseTree> = names_to_import 194 let new_use_trees: Vec<ast::UseTree> = names_to_import