Apply stylistic changes suggested

This commit is contained in:
pcpthm 2019-03-18 13:03:04 +09:00
parent e570267515
commit 3d9c2beb8e
2 changed files with 14 additions and 17 deletions

View file

@ -54,7 +54,7 @@ pub(crate) fn expr_block_contents(p: &mut Parser) {
// test block_items
// fn a() { fn b() {} }
let mut m = p.start();
let m = p.start();
let has_attrs = p.at(POUND);
attributes::outer_attributes(p);
if p.at(LET_KW) {
@ -62,9 +62,9 @@ pub(crate) fn expr_block_contents(p: &mut Parser) {
continue;
}
m = match items::maybe_item(p, m, items::ItemFlavor::Mod) {
Some(m) => m,
None => continue,
let m = match items::maybe_item(p, m, items::ItemFlavor::Mod) {
Ok(()) => continue,
Err(m) => m,
};
// test pub_expr