Skip to content

Commit 5416cee

Browse files
committed
feat: add support for 128 bit HashMap key serialization
1 parent 27a4ca9 commit 5416cee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/value/ser.rs

+8
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ impl serde::Serializer for MapKeySerializer {
505505
Ok(value.to_string())
506506
}
507507

508+
fn serialize_i128(self, value: i128) -> Result<String> {
509+
Ok(value.to_string())
510+
}
511+
508512
fn serialize_u8(self, value: u8) -> Result<String> {
509513
Ok(value.to_string())
510514
}
@@ -521,6 +525,10 @@ impl serde::Serializer for MapKeySerializer {
521525
Ok(value.to_string())
522526
}
523527

528+
fn serialize_u128(self, value: u128) -> Result<String> {
529+
Ok(value.to_string())
530+
}
531+
524532
fn serialize_f32(self, value: f32) -> Result<String> {
525533
if value.is_finite() {
526534
Ok(ryu::Buffer::new().format_finite(value).to_owned())

0 commit comments

Comments
 (0)