mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-22 04:25:25 +00:00
Shut up Clippy
This commit is contained in:
parent
407bb9e4cb
commit
0000903a7d
1 changed files with 1 additions and 7 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue