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:
parent
e222b5a9df
commit
95a043deef
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user