diff --git a/core/src/libtx/secp_ser.rs b/core/src/libtx/secp_ser.rs index b486f21d1c..333e7ff0b0 100644 --- a/core/src/libtx/secp_ser.rs +++ b/core/src/libtx/secp_ser.rs @@ -75,7 +75,7 @@ pub mod option_sig_serde { where D: Deserializer<'de>, { - Option::<&str>::deserialize(deserializer).and_then(|res| match res { + Option::::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| {