Re-adding 'r allowed me to remove dependency but adding in return tokens broke the build again.
This commit is contained in:
parent
24a8247907
commit
43fddc6e58
@ -43,17 +43,18 @@ use tracing::trace;
|
|||||||
|
|
||||||
type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>;
|
type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>;
|
||||||
|
|
||||||
fn context_many_till<'r: 'x, 'x, I, O, E, F, M, T>(
|
fn context_many_till<'r, 'x, I, O, E, F, M, T>(
|
||||||
context: Context<'r>,
|
context: Context<'r>,
|
||||||
mut many_matcher: M,
|
mut many_matcher: M,
|
||||||
mut till_matcher: T,
|
mut till_matcher: T,
|
||||||
) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E>
|
) -> impl FnMut(I) -> IResult<I, (Vec<Token<'x>>, F), E> + 'r
|
||||||
where
|
where
|
||||||
O: Into<Token<'x>>,
|
O: Into<Token<'x>>,
|
||||||
I: Clone + InputLength,
|
I: Clone + InputLength,
|
||||||
E: ParseError<I>,
|
E: ParseError<I>,
|
||||||
M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E>,
|
M: for<'a> Fn(Context<'a>, I) -> IResult<I, O, E> + 'r,
|
||||||
T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E>,
|
T: for<'a> Fn(Context<'a>, I) -> IResult<I, F, E> + 'r,
|
||||||
|
F: 'x,
|
||||||
{
|
{
|
||||||
move |mut i: I| {
|
move |mut i: I| {
|
||||||
let mut current_context = context.clone();
|
let mut current_context = context.clone();
|
||||||
@ -134,6 +135,12 @@ pub fn paragraph<'s, 'r>(
|
|||||||
fail_matcher: ChainBehavior::AndParent(Some(¶graph_end)),
|
fail_matcher: ChainBehavior::AndParent(Some(¶graph_end)),
|
||||||
}));
|
}));
|
||||||
let ret = context_many_till(¶graph_context, flat_text_element, context_paragraph_end)(i);
|
let ret = context_many_till(¶graph_context, flat_text_element, context_paragraph_end)(i);
|
||||||
|
match ret {
|
||||||
|
Ok(_) => todo!(),
|
||||||
|
Err(e) => {
|
||||||
|
return Err(e);
|
||||||
|
}
|
||||||
|
};
|
||||||
// TODO: FIX THIS
|
// TODO: FIX THIS
|
||||||
// ret
|
// ret
|
||||||
todo!()
|
todo!()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user