Fix 672 (#673)
This commit is contained in:
committed by
Antioch Peverell
parent
c75026153c
commit
33cb0902bd
+2
-2
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user