util/format/pixel: drop deprecated error::Error::description

This commit is contained in:
Zhiming Wang
2020-06-01 13:39:59 +08:00
parent 506f66ac51
commit 6220b88ef2

View File

@ -928,13 +928,6 @@ impl fmt::Display for ParsePixelError {
}
impl error::Error for ParsePixelError {
fn description(&self) -> &str {
match *self {
ParsePixelError::NulError(ref e) => &e.to_string(),
ParsePixelError::UnknownFormat => "unknown pixel format",
}
}
fn cause(&self) -> Option<&dyn error::Error> {
match *self {
ParsePixelError::NulError(ref e) => Some(e),