From b15f299de8325b576b7336f31c6f89e71dad410c Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 3 Dec 2022 23:17:19 -0500 Subject: [PATCH] Blindly followed the compiler's advice and it solved the build error. --- src/parser/text_element_parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index f837bcec..769da4f7 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -45,12 +45,12 @@ fn context_many_till<'r, I, O, E, F, M, T>( context: Context<'r>, mut many_matcher: M, mut till_matcher: T, -) -> impl FnMut(I) -> IResult, F), E> +) -> impl FnMut(I) -> IResult, F), E> + 'r where I: Clone + InputLength, E: ParseError, - M: Fn(Context<'r>, I) -> IResult, - T: Fn(Context<'r>, I) -> IResult, + M: Fn(Context<'r>, I) -> IResult + 'r, + T: Fn(Context<'r>, I) -> IResult + 'r, { move |mut i: I| { let mut ret = Vec::new();