Run rustfmt
This commit is contained in:
parent
bb72150f02
commit
11d048af03
@ -183,10 +183,12 @@ fn replace_ast(
|
|||||||
) {
|
) {
|
||||||
let existing_use_trees = match parent.clone() {
|
let existing_use_trees = match parent.clone() {
|
||||||
Either::Left(_) => vec![],
|
Either::Left(_) => vec![],
|
||||||
Either::Right(u) => u.use_trees().filter(|n|
|
Either::Right(u) => u
|
||||||
|
.use_trees()
|
||||||
|
.filter(|n|
|
||||||
// filter out star
|
// filter out star
|
||||||
n.star_token().is_none()
|
n.star_token().is_none())
|
||||||
).collect(),
|
.collect(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let new_use_trees: Vec<ast::UseTree> = names_to_import
|
let new_use_trees: Vec<ast::UseTree> = names_to_import
|
||||||
|
Loading…
Reference in New Issue
Block a user