Skip to content

Commit 4f841ab

Browse files
committed
use source instead of cause
1 parent 1876e14 commit 4f841ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/elastic/src/error.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ impl StdError for WrappedError {
110110
self.0.description()
111111
}
112112

113-
fn cause(&self) -> Option<&StdError> {
114-
self.0.cause()
113+
fn source(&self) -> Option<&(StdError + 'static)> {
114+
self.0.source()
115115
}
116116
}
117117

@@ -126,8 +126,8 @@ impl StdError for ClientError {
126126
self.inner.description()
127127
}
128128

129-
fn cause(&self) -> Option<&StdError> {
130-
self.inner.cause()
129+
fn source(&self) -> Option<&(StdError + 'static)> {
130+
self.inner.source()
131131
}
132132
}
133133

0 commit comments

Comments
 (0)