From 5b645c67e5fee80eb69322c9ba84d05f9f3d0951 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 10 Dec 2022 22:25:54 -0500 Subject: [PATCH] Uhhh fixed it by setting r to outlive x. I Don't know if that was correct. --- src/parser/text_element_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index f9777bc9..98a5a19a 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -43,7 +43,7 @@ use tracing::trace; type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult; -fn context_many_till<'r, 'x, I, O, E, F, M, T>( +fn context_many_till<'r: 'x, 'x, I, O, E, F, M, T>( context: Context<'r>, mut many_matcher: M, mut till_matcher: T,