Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Correctly forward serialize_i128 / serialize_u128 to the original ser…
Browse files Browse the repository at this point in the history
…ializer in Compact / Readable wrappers

For historical reasons Serializer trait has default implementation for 128-bit integers
which returns error, so it is important to not forgot to re-implement those methods.
  • Loading branch information
Mingun committed Jul 28, 2024
1 parent d39e74a commit c758d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,12 @@ macro_rules! impl_serializer {
serialize_i16 i16,
serialize_i32 i32,
serialize_i64 i64,
serialize_i128 i128,
serialize_u8 u8,
serialize_u16 u16,
serialize_u32 u32,
serialize_u64 u64,
serialize_u128 u128,
serialize_f32 f32,
serialize_f64 f64,
serialize_char char,
Expand Down

0 comments on commit c758d36

Please sign in to comment.