mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix clippy::redundant_closure
This commit is contained in:
parent
1f70886b15
commit
451fcd3c79
11 changed files with 17 additions and 25 deletions
|
@ -49,7 +49,7 @@ pub mod ext {
|
|||
) -> Option<ast::Expr> {
|
||||
let mut iter = parts.into_iter();
|
||||
let base = expr_path(ext::ident_path(iter.next()?));
|
||||
let expr = iter.fold(base, |base, s| expr_field(base, s));
|
||||
let expr = iter.fold(base, expr_field);
|
||||
Some(expr)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue