From a2845cecc8f2e0cc75d894d03c89531d14453ea2 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 22 Oct 2022 16:13:03 -0700 Subject: [PATCH] Don't need static lifetime --- src/combinators/repeated.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),