Rollup merge of #55734 - teresy:shorthand-fields, r=davidtwco

refactor: use shorthand fields

refactor: use shorthand for single fields everywhere (excluding tests).
This commit is contained in:
kennytm
2018-11-07 18:02:05 +08:00
57 changed files with 68 additions and 68 deletions

View File

@@ -6929,7 +6929,7 @@ impl<'a> Parser<'a> {
_ => ()
}
Ok(ast::EnumDef { variants: variants })
Ok(ast::EnumDef { variants })
}
/// Parse an "enum" declaration