1#[derive(Eq, PartialEq, Debug)]
2pub(crate) struct Error(pub String);
3
4impl std::error::Error for Error {}
5impl 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