Skip to content

Commit

Permalink
Remove redundant Serde impl
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Sep 4, 2023
1 parent 2f09b81 commit f28b944
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,9 @@ where
FromHex::from_hex(data).map_err(Error::custom)
}

fn visit_borrowed_bytes<E: Error>(self, data: &'de [u8]) -> Result<Self::Value, E> {
FromHex::from_hex(data).map_err(Error::custom)
}

fn visit_str<E: Error>(self, data: &str) -> Result<Self::Value, E> {
FromHex::from_hex(data.as_bytes()).map_err(Error::custom)
}

fn visit_borrowed_str<E: Error>(self, data: &'de str) -> Result<Self::Value, E> {
FromHex::from_hex(data.as_bytes()).map_err(Error::custom)
}
}

deserializer.deserialize_str(HexStrVisitor(PhantomData))
Expand Down

0 comments on commit f28b944

Please sign in to comment.