fixup! inline: disallow containers of zero length

This commit is contained in:
Noah Hellman 2023-01-27 17:30:40 +01:00
parent d0084b0d87
commit d8d69b2488

View file

@ -416,6 +416,7 @@ impl<I: Iterator<Item = char> + Clone> Parser<I> {
// empty container
return None;
}
let inner_span = Span::new(self.events[e_opener].span.end(), self.span.start());
let mut event_closer = match Container::try_from(d) {
Ok(cont) => {