aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
authorunexge <[email protected]>2020-08-14 20:17:26 +0100
committerunexge <[email protected]>2020-08-20 19:34:53 +0100
commit11d048af03e0d9e07c5c67c9a644af5fbf94ed57 (patch)
tree015cf8312848c502d3e224eb069e70e89dc576cc /crates/assists
parentbb72150f0214c9395c48fdd3ee93650f0a507112 (diff)
Run rustfmt
Diffstat (limited to 'crates/assists')
-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