Fix bare_trait_objects deprecation

This commit is contained in:
Zhiming Wang
2020-05-31 14:08:25 +08:00
parent d3c10e4068
commit 13a2354a2c
3 changed files with 5 additions and 5 deletions

View File

@ -937,7 +937,7 @@ impl error::Error for ParsePixelError {
}
}
fn cause(&self) -> Option<&error::Error> {
fn cause(&self) -> Option<&dyn error::Error> {
match *self {
ParsePixelError::NulError(ref e) => Some(e),
ParsePixelError::UnknownFormat => None,