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
1 changed files with 2 additions and 2 deletions

View File

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