Skip to content

Commit d1dd0af

Browse files
committed
ledger: Add Debug trait.
1 parent ea08b55 commit d1dd0af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
55
use crate::ledger::Ledger;
66
use bitcoincore_rpc::{Auth, RpcApi};
7+
use std::fmt::Debug;
78

89
mod rpc_api;
910

1011
/// This trait defines non-functional interfaces for RPC interfaces, like
1112
/// `new()`. This is needed if target application wants to choose actual rpc and
1213
/// this via trait definitions. This is helpful for choosing different rpc
1314
/// interface between test and release builds.
14-
pub trait RpcApiWrapper: RpcApi + std::marker::Sync + std::marker::Send + 'static {
15+
pub trait RpcApiWrapper: RpcApi + std::marker::Sync + std::marker::Send + 'static + Debug {
1516
/// Create a new RPC connection.
1617
fn new(url: &str, auth: Auth) -> bitcoincore_rpc::Result<Self>;
1718
/// Create a new RPC connection, without any cleanup. Useful for `clone`

0 commit comments

Comments
 (0)