From 6f5a88ba9354b5b918861dbf4137a044b0e1b5c4 Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Tue, 31 Dec 2024 15:03:58 -1000 Subject: [PATCH] Store PValue in FoR metadata --- vortex-scalar/src/serde/serde.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vortex-scalar/src/serde/serde.rs b/vortex-scalar/src/serde/serde.rs index f175fecae6..abc955cbe4 100644 --- a/vortex-scalar/src/serde/serde.rs +++ b/vortex-scalar/src/serde/serde.rs @@ -191,7 +191,7 @@ impl<'de> Deserialize<'de> for PValue { D: Deserializer<'de>, { ScalarValue::deserialize(deserializer) - .and_then(|scalar| scalar.0.as_pvalue().map_err(|e| Error::custom(e))) + .and_then(|scalar| scalar.0.as_pvalue().map_err(Error::custom)) .and_then(|pvalue| { pvalue.ok_or_else(|| Error::custom("Expected a non-null primitive scalar value")) })