mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 11:14:38 +08:00
Shut up Clippy
This commit is contained in:
1 parent
e76edde38e
commit
7caeee7810
1 file changed
+1
-7
@@ -47,13 +47,7 @@ impl CompileError {
|
||||
match parse {
|
||||
ParseErrorType::Lexical(LexicalErrorType::IndentationError) => true,
|
||||
ParseErrorType::UnrecognizedToken(token, expected) => {
|
||||
if *token == Tok::Indent {
|
||||
true
|
||||
} else if expected.clone() == Some("Indent".to_string()) {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
*token == Tok::Indent || expected.clone() == Some("Indent".to_string())
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user