From d6dec7cf7ddb02605395381e0c840cefa524cfd6 Mon Sep 17 00:00:00 2001 From: Jan Kaul Date: Thu, 3 Aug 2023 11:48:26 +0200 Subject: [PATCH] fix clippy warnings --- crates/iceberg/src/spec/values.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/iceberg/src/spec/values.rs b/crates/iceberg/src/spec/values.rs index b8d450608..9f08e4e54 100644 --- a/crates/iceberg/src/spec/values.rs +++ b/crates/iceberg/src/spec/values.rs @@ -328,7 +328,7 @@ mod float { where D: Deserializer<'de>, { - f32::deserialize(deserializer).map(|x| OrderedFloat(x)) + f32::deserialize(deserializer).map(OrderedFloat) } } @@ -347,7 +347,7 @@ mod double { where D: Deserializer<'de>, { - f64::deserialize(deserializer).map(|x| OrderedFloat(x)) + f64::deserialize(deserializer).map(OrderedFloat) } }