Its building again.
This commit is contained in:
		
							parent
							
								
									7bed61a541
								
							
						
					
					
						commit
						75ab876b0b
					
				| @ -43,16 +43,17 @@ use tracing::trace; | ||||
| 
 | ||||
| type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>; | ||||
| 
 | ||||
| fn context_many_till<'r, I, O, E, F, M, T>( | ||||
| 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<O>, F), E> | ||||
| ) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E> | ||||
| where | ||||
|     I: Clone + InputLength, | ||||
|     E: ParseError<I>, | ||||
|     M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E>, | ||||
|     T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E>, | ||||
|     O: Into<Token<'x>>, | ||||
| { | ||||
|     move |mut i: I| { | ||||
|         let mut current_context = context.clone(); | ||||
| @ -73,7 +74,6 @@ where | ||||
|                                 ret.push(token); | ||||
|                             } | ||||
|                         }; | ||||
| 
 | ||||
|                     } | ||||
|                     // TODO build a vec of the elements by popping off the newest elements of the context
 | ||||
|                     return Ok((remaining, (ret, finish))); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander