From d23f7ce7fe7dfebaaa7a04acd2def340e98001e0 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 17 Jul 2022 19:03:55 -0400 Subject: [PATCH] Inlining did not fix it. --- src/parser/text_element_parser.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index 2264b48..0954dd8 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -31,9 +31,9 @@ where { not(&mut context.fail_matcher)(i)?; if context.can_match_bold { - // if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { - // return Ok(v); - // } + if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { + return Ok(v); + } } if context.can_match_link { // todo @@ -48,6 +48,7 @@ where ))(i) } +#[inline(always)] pub fn flat_bold<'a, F>(i: &'a str, context: &mut NomContext) -> Res<&'a str, TextElement<'a>> where F: for<'b> FnMut(&'b str) -> IResult<&'b str, &'b str, VerboseError<&'b str>>,