Skip to content

Commit c872ccc

Browse files
committed
delegate box error provide
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
1 parent 650991d commit c872ccc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: library/alloc/src/boxed.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2444,4 +2444,8 @@ impl<T: core::error::Error> core::error::Error for Box<T> {
24442444
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
24452445
core::error::Error::source(&**self)
24462446
}
2447+
2448+
fn provide<'b>(&'b self, request: &mut core::error::Request<'b>) {
2449+
core::error::Error::provide(&**self, request);
2450+
}
24472451
}

0 commit comments

Comments
 (0)