From cba4d3224a16fb775342a319d6b3ebfbe3efd9cf Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Thu, 28 May 2020 11:53:05 +0100 Subject: [PATCH] Fix clippy errors of redundant closures --- src/de.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de.rs b/src/de.rs index 170e0593..fb0e8c33 100644 --- a/src/de.rs +++ b/src/de.rs @@ -569,11 +569,11 @@ where } fn parse_f32(&mut self) -> Result { - self.parse_u32().map(|i| f32::from_bits(i)) + self.parse_u32().map(f32::from_bits) } fn parse_f64(&mut self) -> Result { - self.parse_u64().map(|i| f64::from_bits(i)) + self.parse_u64().map(f64::from_bits) } // Don't warn about the `unreachable!` in case