Don't need static lifetime

This commit is contained in:
Greg Shuflin 2022-10-22 16:13:03 -07:00
parent 0b51aa5073
commit a2845cecc8

View File

@ -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<I, O, I> + 'static,
I: ParserInput + Clone + 'static,
P: Parser<I, O, I> + 'a,
I: ParserInput + Clone + 'a,
{
Repeated {
inner_parser: BoxedParser::new(parser),