Don't need static lifetime

This commit is contained in:
Greg Shuflin 2022-10-22 16:13:03 -07:00
parent 0b51aa5073
commit a2845cecc8
1 changed files with 2 additions and 2 deletions

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),