diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index a2c760e5..432d3c17 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -51,8 +51,8 @@ fn context_many_till<'r, 's, I, O, E, F, M, T>( where I: Clone + InputLength, E: ParseError, - M: Fn(Context<'r, 's>, I) -> IResult + 'r, - T: Fn(Context<'r, 's>, I) -> IResult + 'r, + M: for<'x> Fn(Context<'x, 's>, I) -> IResult + 'r, + T: for<'x> Fn(Context<'x, 's>, I) -> IResult + 'r, O: Into>, { move |mut i: I| { @@ -133,12 +133,12 @@ pub fn paragraph<'s, 'r>( fail_matcher: ChainBehavior::AndParent(Some(¶graph_end)), })); let ret = context_many_till(¶graph_context, flat_text_element, context_paragraph_end)(i); - // match ret { - // Ok(_) => todo!(), - // Err(e) => { - // return Err(e); - // } - // }; + match ret { + Ok(_) => todo!(), + Err(e) => { + return Err(e); + } + }; // TODO: FIX THIS // ret todo!()