1
Fork 0

implement Error::source for Box<T: Error>

fixes https://github.com/rust-lang/rust/issues/61899
This commit is contained in:
s3bk 2019-06-16 22:59:12 +03:00 committed by Sebastian Köln
parent e3175c34b4
commit 8951cb5c40

View file

@ -560,6 +560,10 @@ impl<T: Error> Error for Box<T> {
fn cause(&self) -> Option<&dyn Error> {
Error::cause(&**self)
}
fn source(&self) -> Option<&(dyn Error + 'static)> {
Error::source(&**self)
}
}
#[stable(feature = "fmt_error", since = "1.11.0")]