From 4114874156ddb93fdef342c6467831546771383f Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 18 Oct 2023 23:12:58 -0400 Subject: [PATCH] Fix some linter errors --- nom-training/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nom-training/src/lib.rs b/nom-training/src/lib.rs index 661ed70..4302bce 100644 --- a/nom-training/src/lib.rs +++ b/nom-training/src/lib.rs @@ -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(|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>>( parser: impl Parser<&'a str, i32, 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) }