Fix decimal build.
This commit is contained in:
parent
c492fa3234
commit
0b028dc900
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user