Got rid of the 'r lifetimes without issue.

This commit is contained in:
Tom Alexander 2022-12-10 22:31:28 -05:00
parent 5b645c67e5
commit 24a8247907
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 3 additions and 3 deletions

View File

@ -47,13 +47,13 @@ fn context_many_till<'r: 'x, 'x, I, O, E, F, M, T>(
context: Context<'r>,
mut many_matcher: M,
mut till_matcher: T,
) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E> + 'r
) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E>
where
O: Into<Token<'x>>,
I: Clone + InputLength,
E: ParseError<I>,
M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E> + 'r,
T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E> + 'r,
M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E>,
T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E>,
{
move |mut i: I| {
let mut current_context = context.clone();