This commit is contained in:
Noah Hellman 2023-01-25 19:26:11 +01:00
parent 50287ca9da
commit 6ec5b09367
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ impl<'s> TreeParser<'s> {
if let tree::Element::Container(Node::Container(Container::List {
tight,
..
})) = self.tree.elem_mut(*node)
})) = self.tree.elem(*node)
{
*tight = false;
} else {

View file

@ -210,7 +210,7 @@ impl<C: Clone, A: Clone> Builder<C, A> {
self.depth
}
pub(super) fn elem_mut(&mut self, ni: NodeIndex) -> Element<C, A> {
pub(super) fn elem(&mut self, ni: NodeIndex) -> Element<C, A> {
match &mut self.nodes[ni.index()].kind {
NodeKind::Root => unreachable!(),
NodeKind::Container(c, ..) => Element::Container(c),