Remove deprecated cause method from ContextError

This commit is contained in:
David Tolnay 2019-10-05 17:19:45 -04:00
parent 7fdf38ea1b
commit b702096f5c
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -98,10 +98,6 @@ where
self.error.backtrace()
}
fn cause(&self) -> Option<&dyn StdError> {
Some(&self.error)
}
fn source(&self) -> Option<&(dyn StdError + 'static)> {
Some(&self.error)
}
@ -115,10 +111,6 @@ where
Some(self.error.backtrace())
}
fn cause(&self) -> Option<&dyn StdError> {
Some(&*self.error)
}
fn source(&self) -> Option<&(dyn StdError + 'static)> {
Some(&*self.error)
}