use std::fmt::Display;
#[derive(Debug)]
pub enum Error {
IoError(std::io::Error),
}
impl From<std::io::Error> for Error {
fn from(value: std::io::Error) -> Self {
Self::IoError(value)
}
}
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::IoError(e) => e.fmt(f),
}
}
}
impl std::error::Error for Error {}