allow deprecated on Error::cause

This commit is contained in:
Sean McArthur
2018-12-17 12:23:30 -08:00
parent 37039760f8
commit 11962e36ab

View File

@@ -276,6 +276,7 @@ impl StdError for Error {
}
}
#[allow(deprecated)]
fn cause(&self) -> Option<&StdError> {
match self.inner.kind {
Kind::Http(ref e) => e.cause(),