fixup! block: add MeteredBlock as intermediate struct

This commit is contained in:
Noah Hellman 2023-02-06 20:03:52 +01:00
parent e9feeb73c1
commit 42360d7001

View file

@ -209,7 +209,7 @@ impl<'s> TreeParser<'s> {
if let Some(OpenList { ty, depth, .. }) = self.open_lists.last() {
assert!(usize::from(*depth) <= self.tree.depth());
if self.tree.depth() == (*depth).into()
&& !matches!(kind, Kind::ListItem{ ty: ty_new, .. } if *ty == ty_new)
&& !matches!(kind, Kind::ListItem { ty: ty_new, .. } if *ty == ty_new)
{
self.tree.exit(); // list
self.open_lists.pop();