Inlining did not fix it.

This commit is contained in:
Tom Alexander 2022-07-17 19:03:55 -04:00
parent c5d255d357
commit d23f7ce7fe
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -31,9 +31,9 @@ where
{ {
not(&mut context.fail_matcher)(i)?; not(&mut context.fail_matcher)(i)?;
if context.can_match_bold { if context.can_match_bold {
// if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) { if let Ok(v) = parser_with_context!(flat_bold)(context.clone())(i) {
// return Ok(v); return Ok(v);
// } }
} }
if context.can_match_link { if context.can_match_link {
// todo // todo
@ -48,6 +48,7 @@ where
))(i) ))(i)
} }
#[inline(always)]
pub fn flat_bold<'a, F>(i: &'a str, context: &mut NomContext<F>) -> Res<&'a str, TextElement<'a>> pub fn flat_bold<'a, F>(i: &'a str, context: &mut NomContext<F>) -> Res<&'a str, TextElement<'a>>
where where
F: for<'b> FnMut(&'b str) -> IResult<&'b str, &'b str, VerboseError<&'b str>>, F: for<'b> FnMut(&'b str) -> IResult<&'b str, &'b str, VerboseError<&'b str>>,