Fix f32_feature with serde.

This commit is contained in:
Stephen Chung
2021-04-06 23:18:28 +08:00
parent 131147c65d
commit 7ec49a9510
3 changed files with 8 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ impl Serialize for Dynamic {
Union::Float(x, _) => ser.serialize_f64(**x),
#[cfg(not(feature = "no_float"))]
#[cfg(feature = "f32_float")]
Union::Float(x, _) => ser.serialize_f32(*x),
Union::Float(x, _) => ser.serialize_f32(**x),
#[cfg(feature = "decimal")]
#[cfg(not(feature = "f32_float"))]