Skip to content

Commit

Permalink
ledger-client: Apply fmt and clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Sep 6, 2024
1 parent 8ad23af commit c825f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self> {
Ok(Self {
ledger: Ledger::new_without_cleanup(url),
Expand Down
5 changes: 4 additions & 1 deletion src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c825f20

Please sign in to comment.