Fix clippy::explicit_iter_loop (pedantic)
“it is more concise to loop over references to containers instead of using explicit iteration methods” https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Charlie Marsh
parent
6b935121a7
commit
3dd6522b4f
@@ -31,7 +31,7 @@ where
|
||||
}
|
||||
ExprKind::Lambda { args, body } => {
|
||||
visitor::walk_expr(self, body);
|
||||
for arg in args.args.iter() {
|
||||
for arg in &args.args {
|
||||
self.names.remove(arg.node.arg.as_str());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user