This commit is contained in:
Stephen Chung 2022-08-12 16:44:13 +08:00
parent cba394d73c
commit 3cb66b7e23

View File

@ -379,7 +379,7 @@ impl Dynamic {
if TypeId::of::<T>() == TypeId::of::<crate::Map>() {
return matches!(self.0, Union::Map(..));
}
#[cfg(not(feature = "decimal"))]
#[cfg(feature = "decimal")]
if TypeId::of::<T>() == TypeId::of::<rust_decimal::Decimal>() {
return matches!(self.0, Union::Decimal(..));
}