Fix bare_trait_objects deprecation
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user