This commit is contained in:
Quentin Le Sceller
2018-01-31 13:29:45 -05:00
committed by Antioch Peverell
parent c75026153c
commit 33cb0902bd
+2 -2
View File
@@ -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)
},