mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-08 02:01:14 +03:00
fix option_sig_serde (#2699)
This commit is contained in:
parent
6949a0d341
commit
2e72ed91f3
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ pub mod option_sig_serde {
|
|||
where
|
||||
D: Deserializer<'de>,
|
||||
{
|
||||
Option::<&str>::deserialize(deserializer).and_then(|res| match res {
|
||||
Option::<String>::deserialize(deserializer).and_then(|res| match res {
|
||||
Some(string) => from_hex(string.to_string())
|
||||
.map_err(|err| Error::custom(err.to_string()))
|
||||
.and_then(|bytes: Vec<u8>| {
|
||||
|
|
Loading…
Add table
Reference in a new issue