Skip to content

Commit 01d08e3

Browse files
committed
cause fn is deprecated in favor of source
1 parent 145f3ac commit 01d08e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error/multiple_error_types/wrap_error.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl fmt::Display for DoubleError {
2929
}
3030
3131
impl error::Error for DoubleError {
32-
fn cause(&self) -> Option<&error::Error> {
32+
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
3333
match *self {
3434
DoubleError::EmptyVec => None,
3535
// The cause is the underlying implementation error type. Is implicitly

0 commit comments

Comments
 (0)