Skip to content

Commit 7caeee7

Browse files
committed
Shut up Clippy
1 parent e76edde commit 7caeee7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

compiler/src/error.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,7 @@ impl CompileError {
4747
match parse {
4848
ParseErrorType::Lexical(LexicalErrorType::IndentationError) => true,
4949
ParseErrorType::UnrecognizedToken(token, expected) => {
50-
if *token == Tok::Indent {
51-
true
52-
} else if expected.clone() == Some("Indent".to_string()) {
53-
true
54-
} else {
55-
false
56-
}
50+
*token == Tok::Indent || expected.clone() == Some("Indent".to_string())
5751
}
5852
_ => false,
5953
}

0 commit comments

Comments
 (0)