From 33cb0902bd658c39a3f4f8578c600113fc250cdf Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Wed, 31 Jan 2018 13:29:45 -0500 Subject: [PATCH] Fix 672 (#673) --- api/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/types.rs b/api/src/types.rs index 78c4d13a..52fa3f63 100644 --- a/api/src/types.rs +++ b/api/src/types.rs @@ -346,8 +346,8 @@ impl<'de> serde::de::Deserialize<'de> for OutputPrintable { Field::SwitchCommitHash => { no_dup!(switch_commit_hash); - let val: &str = map.next_value()?; - let hash = core::SwitchCommitHash::from_hex(val.clone()) + let val: String = map.next_value()?; + let hash = core::SwitchCommitHash::from_hex(&val.clone()) .map_err(serde::de::Error::custom)?; switch_commit_hash = Some(hash) },