Skip to content

Commit

Permalink
ledger: Add Debug trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Sep 9, 2024
1 parent ea08b55 commit d1dd0af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

use crate::ledger::Ledger;
use bitcoincore_rpc::{Auth, RpcApi};
use std::fmt::Debug;

mod rpc_api;

/// This trait defines non-functional interfaces for RPC interfaces, like
/// `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<Self>;
/// Create a new RPC connection, without any cleanup. Useful for `clone`
Expand Down

0 comments on commit d1dd0af

Please sign in to comment.