From cad8f4bd77bad4a0db83e62ad35be801e2ad737f Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 17 Jul 2022 18:20:18 -0400 Subject: [PATCH] Does not need to consume the NomContext since we are cloning the fail matcher. --- src/parser/nom_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/nom_context.rs b/src/parser/nom_context.rs index e62d73fe..ced63e8b 100644 --- a/src/parser/nom_context.rs +++ b/src/parser/nom_context.rs @@ -42,7 +42,7 @@ where } pub fn with_additional_fail_matcher( - self, + &self, mut additional_fail_matcher: G, ) -> NomContext< impl Clone + for<'o> FnMut(&'o str) -> IResult<&'o str, &'o str, VerboseError<&'o str>>,