diff --git a/src/combinators/repeated.rs b/src/combinators/repeated.rs index 2b1c35c..4dac5b1 100644 --- a/src/combinators/repeated.rs +++ b/src/combinators/repeated.rs @@ -3,8 +3,8 @@ use crate::parser::{BoxedParser, ParseResult, Parser, ParserInput}; pub fn repeated<'a, P, I, O>(parser: P) -> Repeated<'a, I, O> where - P: Parser + 'static, - I: ParserInput + Clone + 'static, + P: Parser + 'a, + I: ParserInput + Clone + 'a, { Repeated { inner_parser: BoxedParser::new(parser),