Skip to content

Commit c825f20

Browse files
committed
ledger-client: Apply fmt and clippy.
1 parent 8ad23af commit c825f20

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/client/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ impl RpcApiWrapper for Client {
5757
/// it's previous state. Meaning it won't clear database. This is helpful
5858
/// for cloning the `Client` structure.
5959
#[tracing::instrument]
60+
#[allow(deprecated)]
6061
fn new_without_cleanup(url: &str, _auth: Auth) -> bitcoincore_rpc::Result<Self> {
6162
Ok(Self {
6263
ledger: Ledger::new_without_cleanup(url),

src/ledger/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ impl Ledger {
8383
/// # Panics
8484
///
8585
/// Panics if SQLite connection can't be established.
86-
#[deprecated(since="0.0.11", note="`new()` also checks for open ledgers, not needed")]
86+
#[deprecated(
87+
since = "0.0.11",
88+
note = "`new()` also checks for open ledgers, not needed"
89+
)]
8790
pub fn new_without_cleanup(path: &str) -> Self {
8891
let path = Ledger::get_database_path(path);
8992

0 commit comments

Comments
 (0)