mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
Fix clippy error
This commit is contained in:
parent
9030679193
commit
3b0fd61b3b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue