Huh, managed to solve the lifetime issue using HRTB. Not sure if I should be changing the 'r at the end of the line.

This commit is contained in:
Tom Alexander 2022-12-10 20:56:06 -05:00
parent e222b5a9df
commit 95a043deef
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -52,8 +52,8 @@ where
O: Into<Token<'x>>, O: Into<Token<'x>>,
I: Clone + InputLength, I: Clone + InputLength,
E: ParseError<I>, E: ParseError<I>,
M: Fn(Context<'r>, I) -> IResult<I, O, E> + 'r, M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E> + 'r,
T: Fn(Context<'r>, I) -> IResult<I, F, E> + 'r, T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E> + 'r,
{ {
move |mut i: I| { move |mut i: I| {
let mut ret = Vec::new(); let mut ret = Vec::new();