1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use ::std::convert::From;
use ::std::num::ParseIntError;

#[derive(Copy, Clone, PartialEq, Debug)]
pub enum ColourParseError {
    InvalidFormat,
}

impl From<ParseIntError> for ColourParseError {
    fn from(_: ParseIntError) -> Self {
        Self::InvalidFormat
    }
}