use std::fmt::{Display, Formatter};
#[derive(Debug)]
pub enum ErrorKind {
CompressionError(String),
}
impl Display for ErrorKind {
fn fmt(&self, fmt: &mut Formatter<'_>) -> std::fmt::Result {
match self {
ErrorKind::CompressionError(e) => write!(fmt, "Serialisation error occurred: {:?}", e),
}
}
}