Serialize Timestamp with type name instead of panic.
This commit is contained in:
parent
aef18b5473
commit
0f7b390881
@ -34,7 +34,7 @@ impl Serialize for Dynamic {
|
||||
}
|
||||
Union::FnPtr(f, _) => ser.serialize_str(f.fn_name()),
|
||||
#[cfg(not(feature = "no_std"))]
|
||||
Union::TimeStamp(_, _) => unimplemented!("serialization of timestamp is not supported"),
|
||||
Union::TimeStamp(x, _) => ser.serialize_str((**x).type_name()),
|
||||
|
||||
Union::Variant(v, _) => ser.serialize_str((***v).type_name()),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user