Fix some linter errors #78
|
@ -36,7 +36,7 @@ where
|
||||||
fn parse_container_c<'a, E: ParseError<&'a str>>(
|
fn parse_container_c<'a, E: ParseError<&'a str>>(
|
||||||
parser: impl Parser<&'a str, i32, E>,
|
parser: impl Parser<&'a str, i32, E>,
|
||||||
) -> impl Parser<&'a str, Container, E> {
|
) -> impl Parser<&'a str, Container, E> {
|
||||||
parser.map(|val| Container(val))
|
parser.map(Container)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -54,7 +54,7 @@ fn parse_container_d<'a, E: ParseError<&'a str>>(
|
||||||
fn parse_container_e<'a, E: ParseError<&'a str>>(
|
fn parse_container_e<'a, E: ParseError<&'a str>>(
|
||||||
parser: impl Parser<&'a str, i32, E>,
|
parser: impl Parser<&'a str, i32, E>,
|
||||||
) -> impl Parser<&'a str, Container, E> {
|
) -> impl Parser<&'a str, Container, E> {
|
||||||
let mut parser = parser.map(|val| Container(val));
|
let mut parser = parser.map(Container);
|
||||||
|
|
||||||
move |input| parser.parse(input)
|
move |input| parser.parse(input)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue