Skip to content

Commit bc71734

Browse files
committed
use std::error::source instead of cause (deprecated)
1 parent 06a6c15 commit bc71734

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

client/src/error.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ impl fmt::Display for Error {
9393
}
9494

9595
impl error::Error for Error {
96-
fn description(&self) -> &str {
97-
"bitcoincore-rpc error"
98-
}
99-
100-
fn cause(&self) -> Option<&dyn error::Error> {
96+
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
10197
match *self {
10298
Error::JsonRpc(ref e) => Some(e),
10399
Error::Hex(ref e) => Some(e),

0 commit comments

Comments
 (0)