From d3b49a6835ad05160f78054908be50e547d01fe8 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 26 Nov 2022 19:39:00 -0500 Subject: [PATCH] Urg hrtb hell again. --- src/parser/text_element_parser.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,