Use std::error::Error::source; cause was deprecated in Rust 1.33.
This commit is contained in:
parent
766822c791
commit
23c2c189da
|
@ -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 {
|
match *self {
|
||||||
Error::InvalidFormat(_) => None,
|
Error::InvalidFormat(_) => None,
|
||||||
Error::Io(ref err) => Some(err),
|
Error::Io(ref err) => Some(err),
|
||||||
|
|
Loading…
Reference in New Issue