1
2
3
4
5
6
7
8
9
use quick_error::quick_error;

quick_error! {
    #[derive(Debug)]
    pub enum Error {
        Io(err: std::io::Error) { from() }
    }
}
pub type Result<T> = std::result::Result<T, Error>;