util/format/pixel: drop deprecated error::Error::description
This commit is contained in:
@ -928,13 +928,6 @@ impl fmt::Display for ParsePixelError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl error::Error 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> {
|
fn cause(&self) -> Option<&dyn error::Error> {
|
||||||
match *self {
|
match *self {
|
||||||
ParsePixelError::NulError(ref e) => Some(e),
|
ParsePixelError::NulError(ref e) => Some(e),
|
||||||
|
Reference in New Issue
Block a user