Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Aug 22, 2023
1 parent 01f082b commit 2bdbea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_python_parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2067,10 +2067,10 @@ allowed {x}"""} string""#;
}

fn lex_fstring_error(source: &str) -> FStringErrorType {
match lex(source, Mode::Module).find_map(|result| result.err()) {
match lex(source, Mode::Module).find_map(std::result::Result::err) {
Some(err) => match err.error {
LexicalErrorType::FStringError(error) => error,
_ => panic!("Expected FStringError: {:?}", err),
_ => panic!("Expected FStringError: {err:?}"),
},
_ => panic!("Expected exactly one FStringError"),
}
Expand Down

0 comments on commit 2bdbea1

Please sign in to comment.