diff --git a/src/error.rs b/src/error.rs index 5c1654d..af3b4e4 100644 --- a/src/error.rs +++ b/src/error.rs @@ -79,7 +79,7 @@ impl error::Error for Error { } } - fn cause(&self) -> Option<&error::Error> { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { match *self { Error::InvalidFormat(_) => None, Error::Io(ref err) => Some(err),