From 0b028dc9002111afe65dd5c2eca69e3ca99b0671 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 16 Jun 2021 19:44:54 +0800 Subject: [PATCH] Fix decimal build. --- src/serde/serialize.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serde/serialize.rs b/src/serde/serialize.rs index ee0f3996..1bf93383 100644 --- a/src/serde/serialize.rs +++ b/src/serde/serialize.rs @@ -31,7 +31,7 @@ impl Serialize for Dynamic { #[cfg(feature = "decimal")] #[cfg(not(feature = "f32_float"))] - Union::Decimal(x, _, _) => { + Union::Decimal(ref x, _, _) => { use rust_decimal::prelude::ToPrimitive; if let Some(v) = x.to_f64() { @@ -42,7 +42,7 @@ impl Serialize for Dynamic { } #[cfg(feature = "decimal")] #[cfg(feature = "f32_float")] - Union::Decimal(x, _, _) => { + Union::Decimal(ref x, _, _) => { use rust_decimal::prelude::ToPrimitive; if let Some(v) = x.to_f32() {