Remove an unnecessary ?
.
This commit is contained in:
parent
f8e4ac0760
commit
2f305ff460
@ -128,14 +128,10 @@ impl<'a> Parser<'a> {
|
|||||||
Some(item.into_inner())
|
Some(item.into_inner())
|
||||||
});
|
});
|
||||||
|
|
||||||
let item =
|
self.collect_tokens_trailing_token(attrs, force_collect, |this, attrs| {
|
||||||
self.collect_tokens_trailing_token(attrs, force_collect, |this: &mut Self, attrs| {
|
let item = this.parse_item_common_(attrs, mac_allowed, attrs_allowed, fn_parse_mode)?;
|
||||||
let item =
|
Ok((item, TrailingToken::None))
|
||||||
this.parse_item_common_(attrs, mac_allowed, attrs_allowed, fn_parse_mode);
|
})
|
||||||
Ok((item?, TrailingToken::None))
|
|
||||||
})?;
|
|
||||||
|
|
||||||
Ok(item)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parse_item_common_(
|
fn parse_item_common_(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user