diff --git a/src/parser/text_element_parser.rs b/src/parser/text_element_parser.rs index 8fe9e52e..a57832d0 100644 --- a/src/parser/text_element_parser.rs +++ b/src/parser/text_element_parser.rs @@ -37,12 +37,12 @@ use tracing::trace; fn context_many_till< 'r, - M: for<'s> Fn(&'s str) -> IResult<&'s str, TextElement<'s>, VerboseError<&'s str>>, - T: for<'s> Fn(&'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>>, + M: for<'s> FnMut(&'s str) -> IResult<&'s str, TextElement<'s>, VerboseError<&'s str>>, + T: for<'s> FnMut(&'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>>, >( context: &'r OrgModeContextNode<'r>, - many_matcher: M, - till_matcher: T, + mut many_matcher: M, + mut till_matcher: T, ) -> impl for<'s> FnMut( &'s str, ) -> IResult<&'s str, (Vec>, &'s str), VerboseError<&'s str>> {