1use thiserror::Error as ThisError; 2 3#[derive(ThisError, Debug)] 4pub enum Error { 5 #[error("Io error")] 6 Io(std::io::Error), 7} 8 9impl From<std::io::Error> for Error { 10 fn from(error: std::io::Error) -> Self { 11 Self::Io(error) 12 } 13}