use std::fmt::{Display, Formatter};
#[derive(Debug)]
pub enum Error {
InvalidData,
PrefixMismatch {
expected: &'static str,
actual: String,
},
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
impl std::error::Error for Error {}