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.
visit_bytes
FromStrVisitor
1 parent e6e23e9 commit c2fd5ceCopy full SHA for c2fd5ce
src/serde_util.rs
@@ -29,14 +29,6 @@ where
29
formatter.write_str(self.expectation)
30
}
31
32
- fn visit_bytes<E: de::Error>(self, v: &[u8]) -> Result<Self::Value, E> {
33
- if let Ok(hex) = str::from_utf8(v) {
34
- FromStr::from_str(hex).map_err(E::custom)
35
- } else {
36
- Err(E::invalid_value(de::Unexpected::Bytes(v), &self))
37
- }
38
39
-
40
fn visit_str<E: de::Error>(self, v: &str) -> Result<Self::Value, E> {
41
FromStr::from_str(v).map_err(E::custom)
42
0 commit comments