We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cc776e + 966822c commit c62d8faCopy full SHA for c62d8fa
1 file changed
src/ser.rs
@@ -121,15 +121,7 @@ impl<'a> ser::Serializer for &'a mut ConfigSerializer {
121
}
122
123
fn serialize_u64(self, v: u64) -> Result<Self::Ok> {
124
- if v > (i64::MAX as u64) {
125
- Err(ConfigError::Message(format!(
126
- "value {} is greater than the max {}",
127
- v,
128
- i64::MAX
129
- )))
130
- } else {
131
- self.serialize_i64(v as i64)
132
- }
+ self.serialize_primitive(v)
133
134
135
fn serialize_f32(self, v: f32) -> Result<Self::Ok> {
0 commit comments