Mark Parser::eat/check methods as must_use
This commit is contained in:
parent
612a33f20b
commit
e4076e34f8
9 changed files with 44 additions and 13 deletions
|
@ -178,7 +178,8 @@ impl<'a> Parser<'a> {
|
|||
span: this.prev_token.span,
|
||||
});
|
||||
|
||||
this.eat(&token::Comma);
|
||||
// Eat a trailing comma, if it exists.
|
||||
let _ = this.eat(&token::Comma);
|
||||
}
|
||||
|
||||
let param = if this.check_lifetime() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue