Add 128-bit integer support for Formatter

This commit is contained in:
David Tolnay 2020-05-09 17:41:00 -07:00
parent 35ad468780
commit 1b8ebf6b64
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -45,6 +45,13 @@ impl<'a, 'b> Serializer for &'a mut fmt::Formatter<'b> {
serialize_unit_struct: &'static str,
}
serde_if_integer128! {
fmt_primitives! {
serialize_i128: i128,
serialize_u128: u128,
}
}
fn serialize_unit_variant(
self,
_name: &'static str,