diff --git a/src/client/mod.rs b/src/client/mod.rs index 61f0cc2..00f395d 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -57,6 +57,7 @@ impl RpcApiWrapper for Client { /// it's previous state. Meaning it won't clear database. This is helpful /// for cloning the `Client` structure. #[tracing::instrument] + #[allow(deprecated)] fn new_without_cleanup(url: &str, _auth: Auth) -> bitcoincore_rpc::Result { Ok(Self { ledger: Ledger::new_without_cleanup(url), diff --git a/src/ledger/mod.rs b/src/ledger/mod.rs index b13ccb2..4b0120b 100644 --- a/src/ledger/mod.rs +++ b/src/ledger/mod.rs @@ -83,7 +83,10 @@ impl Ledger { /// # Panics /// /// Panics if SQLite connection can't be established. - #[deprecated(since="0.0.11", note="`new()` also checks for open ledgers, not needed")] + #[deprecated( + since = "0.0.11", + note = "`new()` also checks for open ledgers, not needed" + )] pub fn new_without_cleanup(path: &str) -> Self { let path = Ledger::get_database_path(path);