From 6af5c5c88494dddabf8f391775037f9729b6654f Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Tue, 17 Jan 2023 20:55:36 +0100 Subject: [PATCH] fixup! parse inline attrs --- src/lib.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c1d4737..d0c662b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -387,15 +387,15 @@ impl<'s> Parser<'s> { Event::End(t) } } - inline::EventKind::Atom(a) => match a { - inline::Atom::Ellipsis => Event::Atom(Atom::Ellipsis), - inline::Atom::EnDash => Event::Atom(Atom::EnDash), - inline::Atom::EmDash => Event::Atom(Atom::EmDash), - inline::Atom::Nbsp => Event::Atom(Atom::NonBreakingSpace), - inline::Atom::Softbreak => Event::Atom(Atom::Softbreak), - inline::Atom::Hardbreak => Event::Atom(Atom::Hardbreak), - inline::Atom::Escape => Event::Atom(Atom::Escape), - }, + inline::EventKind::Atom(a) => Event::Atom(match a { + inline::Atom::Ellipsis => Atom::Ellipsis, + inline::Atom::EnDash => Atom::EnDash, + inline::Atom::EmDash => Atom::EmDash, + inline::Atom::Nbsp => Atom::NonBreakingSpace, + inline::Atom::Softbreak => Atom::Softbreak, + inline::Atom::Hardbreak => Atom::Hardbreak, + inline::Atom::Escape => Atom::Escape, + }), inline::EventKind::Str => Event::Str(self.inlines.src(inline.span)), inline::EventKind::Whitespace | inline::EventKind::Attributes