We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1876e14 commit 4f841abCopy full SHA for 4f841ab
src/elastic/src/error.rs
@@ -110,8 +110,8 @@ impl StdError for WrappedError {
110
self.0.description()
111
}
112
113
- fn cause(&self) -> Option<&StdError> {
114
- self.0.cause()
+ fn source(&self) -> Option<&(StdError + 'static)> {
+ self.0.source()
115
116
117
@@ -126,8 +126,8 @@ impl StdError for ClientError {
126
self.inner.description()
127
128
129
130
- self.inner.cause()
+ self.inner.source()
131
132
133
0 commit comments