for x in xs.into_iter()
-> for x in xs
Also `for x in option.into_iter()` -> `if let Some(x) = option`
This commit is contained in:
parent
d5f61b4332
commit
fd702702ee
60 changed files with 78 additions and 78 deletions
|
@ -5445,7 +5445,7 @@ impl<'a> Parser<'a> {
|
|||
seq_sep_trailing_allowed(token::Comma),
|
||||
|p| p.parse_ty_sum()
|
||||
);
|
||||
for ty in arg_tys.into_iter() {
|
||||
for ty in arg_tys {
|
||||
args.push(ast::VariantArg {
|
||||
ty: ty,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue