Fix match

This commit is contained in:
harupy 2023-01-02 22:54:48 +09:00
parent fac6a857f6
commit 92bf96608c

View file

@ -228,10 +228,9 @@ impl<'a> StringParser<'a> {
match self.peek() { match self.peek() {
Some('}' | ':') => {} Some('}' | ':') => {}
Some(_) => { Some(_) | None => {
return Err(InvalidConversionFlag.to_lexical_error(self.get_pos())) return Err(UnclosedLbrace.to_lexical_error(self.get_pos()))
} }
None => return Err(UnclosedLbrace.to_lexical_error(self.get_pos())),
} }
} }