From 940d148da408767903fdb359d1026ceea69091da Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Thu, 16 Aug 2018 06:12:28 -0400 Subject: [PATCH] cargo: update rustc-hex --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2b6f5de..ce62e18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index c31ed97..46e8daa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -240,7 +240,7 @@ impl KbinXml { StandardType::NodeStart => {}, StandardType::Binary => { - let data = text.from_hex().context(KbinErrorKind::HexError)?; + let data: Vec = text.from_hex().context(KbinErrorKind::HexError)?; trace!("data: 0x{:02x?}", data); let size = (data.len() as u32) * (node_type.size as u32);