diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index 075e7f30..8fe9e52e 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -35,7 +35,11 @@ use nom::IResult; use tracing::instrument; use tracing::trace; -fn context_many_till<'r, M, T>( +fn context_many_till< + 'r, + M: for<'s> Fn(&'s str) -> IResult<&'s str, TextElement<'s>, VerboseError<&'s str>>, + T: for<'s> Fn(&'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>>, +>( context: &'r OrgModeContextNode<'r>, many_matcher: M, till_matcher: T,