1
2
3
4
5
6
7
8
9
10
11
12
pub type Result<R> = std::result::Result<R, Error>;

use quick_error::quick_error;

quick_error! {
    #[derive(Debug)]
    pub enum Error {
        BmpError(err: bmp::BmpError) { from() }
        IoError(err: std::io::Error) { from() }
        ImageError(err: image::ImageError) { from() }
    }
}