use machine-generated PartialEq instance for hashing Constant (#817)

This commit is contained in:
Mark Thom
2021-02-11 18:40:07 -07:00
parent 2429971bcd
commit e7cf5d4f3d
5 changed files with 38 additions and 24 deletions

View File

@@ -200,7 +200,7 @@ fn read_tokens<R: Read>(lexer: &mut Lexer<R>) -> Result<Vec<Token>, ParserError>
loop {
let token = lexer.next_token()?;
let at_end = Token::End == token;
let at_end = token.is_end();
tokens.push(token);