From 11d048af03e0d9e07c5c67c9a644af5fbf94ed57 Mon Sep 17 00:00:00 2001 From: unexge Date: Fri, 14 Aug 2020 22:17:26 +0300 Subject: Run rustfmt --- crates/assists/src/handlers/expand_glob_import.rs | 8 +++++--- 1 file 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( ) { let existing_use_trees = match parent.clone() { Either::Left(_) => vec![], - Either::Right(u) => u.use_trees().filter(|n| + Either::Right(u) => u + .use_trees() + .filter(|n| // filter out star - n.star_token().is_none() - ).collect(), + n.star_token().is_none()) + .collect(), }; let new_use_trees: Vec = names_to_import -- cgit v1.2.3