diff --git a/src/deserializer.rs b/src/deserializer.rs index 25150c2..5df807b 100644 --- a/src/deserializer.rs +++ b/src/deserializer.rs @@ -335,15 +335,14 @@ macro_rules! deserialize_int { visitor: V, ) -> Result { let field = self.next_field()?; - let num = - if field.starts_with("0x") { - <$inttype>::from_str_radix(&field[2..], 16) - } else { - field.parse() - }; + let num = if field.starts_with("0x") { + <$inttype>::from_str_radix(&field[2..], 16) + } else { + field.parse() + }; visitor.$visit(num.map_err(|err| self.error(DEK::ParseInt(err)))?) } - } + }; } impl<'a, 'de: 'a, T: DeRecord<'de>> Deserializer<'de>