diff --git a/src/block.rs b/src/block.rs index fa8efb3..7dc40ec 100644 --- a/src/block.rs +++ b/src/block.rs @@ -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 { diff --git a/src/tree.rs b/src/tree.rs index ddd00a5..3266570 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -210,7 +210,7 @@ impl Builder { self.depth } - pub(super) fn elem_mut(&mut self, ni: NodeIndex) -> Element { + pub(super) fn elem(&mut self, ni: NodeIndex) -> Element { match &mut self.nodes[ni.index()].kind { NodeKind::Root => unreachable!(), NodeKind::Container(c, ..) => Element::Container(c),