mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-21 03:55: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 {
|
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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue