mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-13 08:05:17 +00:00
Fix match
This commit is contained in:
parent
383ad672e7
commit
9f6d70382b
1 changed files with 2 additions and 3 deletions
|
@ -228,10 +228,9 @@ impl<'a> StringParser<'a> {
|
|||
|
||||
match self.peek() {
|
||||
Some('}' | ':') => {}
|
||||
Some(_) => {
|
||||
return Err(InvalidConversionFlag.to_lexical_error(self.get_pos()))
|
||||
Some(_) | None => {
|
||||
return Err(UnclosedLbrace.to_lexical_error(self.get_pos()))
|
||||
}
|
||||
None => return Err(UnclosedLbrace.to_lexical_error(self.get_pos())),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue