Add 128-bit integer support for Formatter

This commit is contained in:
David Tolnay committed 2020-05-09 17:48:27 -07:00
1 parent 35ad468780
commit 1b8ebf6b64
1 file changed
+7
+7
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,