Fix std::error::Error::description deprecation
This commit is contained in:
@ -932,7 +932,7 @@ impl fmt::Display for ParsePixelError {
|
||||
impl error::Error for ParsePixelError {
|
||||
fn description(&self) -> &str {
|
||||
match *self {
|
||||
ParsePixelError::NulError(ref e) => e.description(),
|
||||
ParsePixelError::NulError(ref e) => &e.to_string(),
|
||||
ParsePixelError::UnknownFormat => "unknown pixel format",
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user