mirror of https://github.com/astral-sh/ruff
Fix clippy error
This commit is contained in:
parent
9030679193
commit
3b0fd61b3b
|
|
@ -125,7 +125,7 @@ impl<'a> StringParser<'a> {
|
|||
}
|
||||
|
||||
unicode_names2::character(&name)
|
||||
.ok_or(LexicalError::new(LexicalErrorType::UnicodeError, start_pos))
|
||||
.ok_or_else(|| LexicalError::new(LexicalErrorType::UnicodeError, start_pos))
|
||||
}
|
||||
|
||||
fn parse_escaped_char(&mut self) -> Result<String, LexicalError> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue