all: clippy

This commit is contained in:
Ryan Chandler 2022-07-28 01:06:31 +01:00
parent 479b323cd9
commit 98fbc20291
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -6,22 +6,27 @@ use super::ParseResult;
impl Parser {
pub(crate) fn semi(&mut self) -> ParseResult<()> {
Ok(expect!(self, TokenKind::SemiColon, "expected semi colon"))
expect!(self, TokenKind::SemiColon, (), "expected semi colon");
Ok(())
}
pub(crate) fn lbrace(&mut self) -> ParseResult<()> {
Ok(expect!(self, TokenKind::LeftBrace, "expected {"))
expect!(self, TokenKind::LeftBrace, (), "expected {");
Ok(())
}
pub(crate) fn rbrace(&mut self) -> ParseResult<()> {
Ok(expect!(self, TokenKind::RightBrace, "expected }"))
expect!(self, TokenKind::RightBrace, (), "expected }");
Ok(())
}
pub(crate) fn lparen(&mut self) -> ParseResult<()> {
Ok(expect!(self, TokenKind::LeftParen, "expected ("))
expect!(self, TokenKind::LeftParen, (), "expected (");
Ok(())
}
pub(crate) fn rparen(&mut self) -> ParseResult<()> {
Ok(expect!(self, TokenKind::RightParen, "expected )"))
expect!(self, TokenKind::RightParen, (), "expected )");
Ok(())
}
}