Skip to content

Commit e1578eb

Browse files
committed
style: run latest version of rustfmt
There appear to be some small tweaks. This hopefully fixes CI errors.
1 parent 70c8600 commit e1578eb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/deserializer.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,14 @@ macro_rules! deserialize_int {
335335
visitor: V,
336336
) -> Result<V::Value, Self::Error> {
337337
let field = self.next_field()?;
338-
let num =
339-
if field.starts_with("0x") {
340-
<$inttype>::from_str_radix(&field[2..], 16)
341-
} else {
342-
field.parse()
343-
};
338+
let num = if field.starts_with("0x") {
339+
<$inttype>::from_str_radix(&field[2..], 16)
340+
} else {
341+
field.parse()
342+
};
344343
visitor.$visit(num.map_err(|err| self.error(DEK::ParseInt(err)))?)
345344
}
346-
}
345+
};
347346
}
348347

349348
impl<'a, 'de: 'a, T: DeRecord<'de>> Deserializer<'de>

0 commit comments

Comments
 (0)