implement Error::source for Box<T: Error>
fixes https://github.com/rust-lang/rust/issues/61899
This commit is contained in:
parent
e3175c34b4
commit
8951cb5c40
1 changed files with 4 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue