Fix errros from value
@@ -30,7 +30,11 @@ pub enum Error {
impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- write!(f, "{:?}", self)
+ match self {
+ Error::ExpectedMap => write!(f, "Expected a struct, but did not find out"),
+ Error::Serde(s) => f.write_str(&s),
+ Error::SimdJSON(e) => write!(f, "SIMD JSON error: {}", e),
+ }
}
}
