1#[derive(Debug)]
2pub enum Error {
3 SerdeJson(serde_json::Error),
4}
5
6impl std::fmt::Display for Error {
7 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8 match self {
9 Error::SerdeJson(err) => write!(f, "{}", err),
10 }
11 }
12}
13
14impl std::error::Error for Error {}