fix clippy

This commit is contained in:
Steven Fackler
2020-10-15 21:14:13 -04:00
parent 510062238d
commit d1f9d6d802
4 changed files with 8 additions and 32 deletions

View File

@@ -136,10 +136,7 @@ impl<'a> DatParser<'a> {
fn peek(&mut self, target: char) -> bool {
self.skip_ws();
match self.it.peek() {
Some((_, ch)) if *ch == target => true,
_ => false,
}
matches!(self.it.peek(), Some((_, ch)) if *ch == target)
}
fn eof(&mut self) {