diff --git a/src/parser/mod.rs b/src/parser/mod.rs index ab16dfb8a..9ebc9300b 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -2272,6 +2272,7 @@ impl<'a> Parser<'a> { /// If the current token is the `expected` keyword, consume it and returns /// true. Otherwise, no tokens are consumed and returns false [must_use]. + #[must_use] pub fn parse_keyword(&mut self, expected: Keyword) -> bool { match self.peek_token().token { Token::Word(w) if expected == w.keyword => {