diff --git a/src/parser/nom_context.rs b/src/parser/nom_context.rs index 92b6899..91a374b 100644 --- a/src/parser/nom_context.rs +++ b/src/parser/nom_context.rs @@ -71,8 +71,8 @@ impl<'r> NomContext<'r> { } } -impl<'a, 'b> Parser<&'b str, &'b str, VerboseError<&'b str>> for FailChecker<'a> { - fn parse(&mut self, i: &'b str) -> IResult<&'b str, &'b str, VerboseError<&'b str>> { +impl<'r, 's> Parser<&'s str, &'s str, VerboseError<&'s str>> for FailChecker<'r> { + fn parse(&mut self, i: &'s str) -> IResult<&'s str, &'s str, VerboseError<&'s str>> { let fail_func = match &self.0.fail_matcher { ChainBehavior::AndParent(inner) => inner, ChainBehavior::IgnoreParent(inner) => inner,