Don't need static lifetime
This commit is contained in:
parent
0b51aa5073
commit
a2845cecc8
@ -3,8 +3,8 @@ use crate::parser::{BoxedParser, ParseResult, Parser, ParserInput};
|
|||||||
|
|
||||||
pub fn repeated<'a, P, I, O>(parser: P) -> Repeated<'a, I, O>
|
pub fn repeated<'a, P, I, O>(parser: P) -> Repeated<'a, I, O>
|
||||||
where
|
where
|
||||||
P: Parser<I, O, I> + 'static,
|
P: Parser<I, O, I> + 'a,
|
||||||
I: ParserInput + Clone + 'static,
|
I: ParserInput + Clone + 'a,
|
||||||
{
|
{
|
||||||
Repeated {
|
Repeated {
|
||||||
inner_parser: BoxedParser::new(parser),
|
inner_parser: BoxedParser::new(parser),
|
||||||
|
Loading…
Reference in New Issue
Block a user