Skip to content

Commit

Permalink
use std::error::source instead of cause (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonilol committed Jun 8, 2024
1 parent 06a6c15 commit bc71734
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ impl fmt::Display for Error {
}

impl error::Error for Error {
fn description(&self) -> &str {
"bitcoincore-rpc error"
}

fn cause(&self) -> Option<&dyn error::Error> {
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match *self {
Error::JsonRpc(ref e) => Some(e),
Error::Hex(ref e) => Some(e),
Expand Down

0 comments on commit bc71734

Please sign in to comment.