From 0fb523e0fe41c170346c9a8d6d2478fc4f5ba0ec Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 26 Nov 2022 19:41:33 -0500 Subject: [PATCH] mut didn't help. --- src/parser/text_element_parser.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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>> {