From bc7173439727fa618180b21e199fbe8145866ab2 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Sat, 8 Jun 2024 23:53:04 +0200 Subject: [PATCH] use std::error::source instead of cause (deprecated) --- client/src/error.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/error.rs b/client/src/error.rs index 02a04d52..00307af1 100644 --- a/client/src/error.rs +++ b/client/src/error.rs @@ -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),