cargo: update rustc-hex

This commit is contained in:
Matt Bilker
2018-08-16 06:12:28 -04:00
parent 49e3cbc1b3
commit 940d148da4
2 changed files with 2 additions and 2 deletions

View File

@@ -14,6 +14,6 @@ minidom = "0.9.0"
num = "0.2.0"
pretty_env_logger = "0.2.3"
quick-xml = "0.12.1"
rustc-hex = "1.0.0"
rustc-hex = "2.0.1"
serde = "1.0.69"
serde_derive = "1.0.69"

View File

@@ -240,7 +240,7 @@ impl KbinXml {
StandardType::NodeStart => {},
StandardType::Binary => {
let data = text.from_hex().context(KbinErrorKind::HexError)?;
let data: Vec<u8> = text.from_hex().context(KbinErrorKind::HexError)?;
trace!("data: 0x{:02x?}", data);
let size = (data.len() as u32) * (node_type.size as u32);