We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf30396 commit d07aa2eCopy full SHA for d07aa2e
src/serde_utils.rs
@@ -238,11 +238,16 @@ pub mod hex_bytes {
238
}
239
240
pub fn deserialize<'de, D, B>(d: D) -> Result<B, D::Error>
241
- where D: serde::Deserializer<'de>, B: serde::Deserialize<'de> + FromHex,
+ where D: serde::Deserializer<'de>,
242
+ B: serde::Deserialize<'de> + FromHex,
243
+ <B as FromHex>::Err: std::fmt::Display,
244
{
245
struct Visitor<B>(::std::marker::PhantomData<B>);
246
- impl<B: FromHex> serde::de::Visitor<'_> for Visitor<B> {
247
+ impl<B: FromHex> serde::de::Visitor<'_> for Visitor<B>
248
+ where
249
250
+ {
251
type Value = B;
252
253
fn expecting(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
0 commit comments