fixup! inline: disallow containers of zero length
This commit is contained in:
parent
d0084b0d87
commit
d8d69b2488
1 changed files with 1 additions and 0 deletions
|
@ -416,6 +416,7 @@ impl<I: Iterator<Item = char> + Clone> Parser<I> {
|
||||||
// empty container
|
// empty container
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
let inner_span = Span::new(self.events[e_opener].span.end(), self.span.start());
|
let inner_span = Span::new(self.events[e_opener].span.end(), self.span.start());
|
||||||
let mut event_closer = match Container::try_from(d) {
|
let mut event_closer = match Container::try_from(d) {
|
||||||
Ok(cont) => {
|
Ok(cont) => {
|
||||||
|
|
Loading…
Reference in a new issue