|
5 | 5 | clippy::explicit_deref_methods,
|
6 | 6 | clippy::if_then_panic,
|
7 | 7 | clippy::match_wildcard_for_single_variants,
|
8 |
| - clippy::too_many_lines, |
9 |
| - clippy::wildcard_imports |
| 8 | + clippy::too_many_lines |
10 | 9 | )]
|
11 | 10 |
|
12 | 11 | //! The tests in this module do the following:
|
@@ -347,8 +346,8 @@ fn librustc_brackets(mut librustc_expr: P<ast::Expr>) -> Option<P<ast::Expr>> {
|
347 | 346 | /// reveal the precedence of the parsed expressions, and produce a stringified
|
348 | 347 | /// form of the resulting expression.
|
349 | 348 | fn syn_brackets(syn_expr: syn::Expr) -> syn::Expr {
|
350 |
| - use syn::fold::*; |
351 |
| - use syn::*; |
| 349 | + use syn::fold::{fold_expr, fold_generic_argument, fold_generic_method_argument, Fold}; |
| 350 | + use syn::{token, Expr, ExprParen, GenericArgument, GenericMethodArgument, Pat, Stmt, Type}; |
352 | 351 |
|
353 | 352 | struct ParenthesizeEveryExpr;
|
354 | 353 | impl Fold for ParenthesizeEveryExpr {
|
@@ -424,9 +423,9 @@ fn syn_brackets(syn_expr: syn::Expr) -> syn::Expr {
|
424 | 423 |
|
425 | 424 | /// Walk through a crate collecting all expressions we can find in it.
|
426 | 425 | fn collect_exprs(file: syn::File) -> Vec<syn::Expr> {
|
427 |
| - use syn::fold::*; |
| 426 | + use syn::fold::Fold; |
428 | 427 | use syn::punctuated::Punctuated;
|
429 |
| - use syn::*; |
| 428 | + use syn::{token, Expr, ExprTuple}; |
430 | 429 |
|
431 | 430 | struct CollectExprs(Vec<Expr>);
|
432 | 431 | impl Fold for CollectExprs {
|
|
0 commit comments