From 6ec5b093673e55b7ebf47dcdce3c422e0ef91a8b Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Wed, 25 Jan 2023 19:26:11 +0100 Subject: [PATCH] tnoheu --- src/block.rs | 2 +- src/tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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),