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:
Jorge Aparicio 2015-01-31 20:03:04 -05:00
parent d5f61b4332
commit fd702702ee
60 changed files with 78 additions and 78 deletions

View file

@ -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,