diff options
| author | Bugen Zhao <i@bugenzhao.com> | 2023-10-31 16:35:59 +0800 |
|---|---|---|
| committer | Bugen Zhao <i@bugenzhao.com> | 2023-10-31 16:35:59 +0800 |
| commit | c872ccc5107327a968018bd5ae4b156730bc7757 (patch) | |
| tree | 63150d3b3ab791419c935b762d6a796c18416704 | |
| parent | 650991d62c3a2c80ba27009d06839adbb038bf5e (diff) | |
| download | rust-c872ccc5107327a968018bd5ae4b156730bc7757.tar.gz rust-c872ccc5107327a968018bd5ae4b156730bc7757.zip | |
delegate box error provide
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
| -rw-r--r-- | library/alloc/src/boxed.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 4a62013c685..25c63b425ce 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -2444,4 +2444,8 @@ impl<T: core::error::Error> core::error::Error for Box<T> { fn source(&self) -> Option<&(dyn core::error::Error + 'static)> { core::error::Error::source(&**self) } + + fn provide<'b>(&'b self, request: &mut core::error::Request<'b>) { + core::error::Error::provide(&**self, request); + } } |
