Shut up Clippy

This commit is contained in:
Seo Sanghyeon 2019-10-12 18:18:45 +09:00
parent 407bb9e4cb
commit 0000903a7d

View file

@ -47,13 +47,7 @@ impl CompileError {
match parse { match parse {
ParseErrorType::Lexical(LexicalErrorType::IndentationError) => true, ParseErrorType::Lexical(LexicalErrorType::IndentationError) => true,
ParseErrorType::UnrecognizedToken(token, expected) => { ParseErrorType::UnrecognizedToken(token, expected) => {
if *token == Tok::Indent { *token == Tok::Indent || expected.clone() == Some("Indent".to_string())
true
} else if expected.clone() == Some("Indent".to_string()) {
true
} else {
false
}
} }
_ => false, _ => false,
} }