From 15a94f0161c2b178e1a6a0aa574dc3f129f8880c Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Fri, 2 Dec 2022 08:16:47 +0100 Subject: [PATCH] fixup! b1072d5d646f05f9b180d7cb1cd86ae805ed1f6d --- src/block.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block.rs b/src/block.rs index 7303b23..8c310ea 100644 --- a/src/block.rs +++ b/src/block.rs @@ -344,7 +344,7 @@ mod test { (Exit(Leaf(Heading { level: 1 })), "#"), (Element(Blankline), "\n"), (Enter(Leaf(Heading { level: 1 })), "#"), - (Element(Inline), " 8\n"), + (Element(Inline), "8\n"), (Element(Inline), " 12\n"), (Element(Inline), "15"), (Exit(Leaf(Heading { level: 1 })), "#"), diff --git a/src/lib.rs b/src/lib.rs index b49f0ed..7437cd3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -361,7 +361,7 @@ impl<'s> Iterator for Parser<'s> { Event::Atom(Atom::Blankline) } tree::EventKind::Enter(block) => { - if matches!(block, block::Block::Leaf(..)) { + if matches!(block, block::Block::Leaf(l)) { self.parser = Some(inline::Parser::new()); } Event::Start(Container::from_block(self.src, block), Attributes::none())