From d1dd0af83e12207246b93df9f0c979a4cf7094f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Mon, 9 Sep 2024 10:23:18 +0300 Subject: [PATCH] ledger: Add Debug trait. --- src/client/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 00f395d..d19d34c 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -4,6 +4,7 @@ use crate::ledger::Ledger; use bitcoincore_rpc::{Auth, RpcApi}; +use std::fmt::Debug; mod rpc_api; @@ -11,7 +12,7 @@ mod rpc_api; /// `new()`. This is needed if target application wants to choose actual rpc and /// this via trait definitions. This is helpful for choosing different rpc /// interface between test and release builds. -pub trait RpcApiWrapper: RpcApi + std::marker::Sync + std::marker::Send + 'static { +pub trait RpcApiWrapper: RpcApi + std::marker::Sync + std::marker::Send + 'static + Debug { /// Create a new RPC connection. fn new(url: &str, auth: Auth) -> bitcoincore_rpc::Result; /// Create a new RPC connection, without any cleanup. Useful for `clone`