1 | #[derive(Eq, PartialEq, Debug)] |
---|---|
2 | pub(crate) struct Error(pub String); |
3 | |
4 | impl std::error::Error for Error {} |
5 | impl std::fmt::Display for Error { |
6 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
7 | write!(f, "{} ", self.0) |
8 | } |
9 | } |
10 |