Skip to content

Commit

Permalink
style: run latest version of rustfmt
Browse files Browse the repository at this point in the history
There appear to be some small tweaks. This hopefully fixes CI errors.
  • Loading branch information
BurntSushi committed May 5, 2020
1 parent 70c8600 commit e1578eb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,14 @@ macro_rules! deserialize_int {
visitor: V,
) -> Result<V::Value, Self::Error> {
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>
Expand Down

0 comments on commit e1578eb

Please sign in to comment.