Compare commits
4 Commits
ebb28c3ae6
...
fe6097ac5e
Author | SHA1 | Date |
---|---|---|
Savanni D'Gerinel | fe6097ac5e | |
Savanni D'Gerinel | 6d04e15a57 | |
Savanni D'Gerinel | d0f6a042e4 | |
Savanni D'Gerinel | 911f4ad81e |
|
@ -36,7 +36,7 @@ where
|
|||
fn parse_container_c<'a, E: ParseError<&'a str>>(
|
||||
parser: impl Parser<&'a str, i32, E>,
|
||||
) -> impl Parser<&'a str, Container, E> {
|
||||
parser.map(Container)
|
||||
parser.map(|val| Container(val))
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -54,7 +54,7 @@ fn parse_container_d<'a, E: ParseError<&'a str>>(
|
|||
fn parse_container_e<'a, E: ParseError<&'a str>>(
|
||||
parser: impl Parser<&'a str, i32, E>,
|
||||
) -> impl Parser<&'a str, Container, E> {
|
||||
let mut parser = parser.map(Container);
|
||||
let mut parser = parser.map(|val| Container(val));
|
||||
|
||||
move |input| parser.parse(input)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue