Clippy fixes

This commit is contained in:
Steven Fackler
2019-10-09 15:20:23 -07:00
parent a3f611d609
commit c7055dc665
4 changed files with 6 additions and 5 deletions

View File

@@ -144,9 +144,8 @@ impl<'a> DatParser<'a> {
fn eof(&mut self) {
self.skip_ws();
match self.it.next() {
Some((_, ch)) => panic!("expected eof but got {}", ch),
None => {}
if let Some((_, ch)) = self.it.next() {
panic!("expected eof but got {}", ch);
}
}