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) } }