From d9652d7f53572894cc57f4029501ddb239b564a2 Mon Sep 17 00:00:00 2001 From: asmo Date: Fri, 6 Jun 2025 12:40:36 +0200 Subject: [PATCH] refactor: fixing pre commit hooks checks (#789) --- crates/cdk-common/src/pub_sub/index.rs | 2 -- crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs | 1 - crates/cdk/src/wallet/mint.rs | 4 ++-- crates/cdk/src/wallet/mod.rs | 15 +++++++-------- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/crates/cdk-common/src/pub_sub/index.rs b/crates/cdk-common/src/pub_sub/index.rs index 5cd6cf4a..15b11b44 100644 --- a/crates/cdk-common/src/pub_sub/index.rs +++ b/crates/cdk-common/src/pub_sub/index.rs @@ -1,6 +1,4 @@ //! WS Index -//! -//! use std::fmt::Debug; use std::ops::Deref; diff --git a/crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs b/crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs index 7ae83208..33bd1856 100644 --- a/crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs +++ b/crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs @@ -1,7 +1,6 @@ //! Module containing command-line interface functionality for the mint RPC client //! //! This module provides the CLI interface for interacting with the mint server via RPC -//! /// Subcommands for cli pub mod subcommands; diff --git a/crates/cdk/src/wallet/mint.rs b/crates/cdk/src/wallet/mint.rs index ac71376e..11def1e7 100644 --- a/crates/cdk/src/wallet/mint.rs +++ b/crates/cdk/src/wallet/mint.rs @@ -24,9 +24,9 @@ impl Wallet { /// use std::sync::Arc; /// /// use cdk::amount::Amount; - /// use cdk_sqlite::wallet::memory; /// use cdk::nuts::CurrencyUnit; /// use cdk::wallet::Wallet; + /// use cdk_sqlite::wallet::memory; /// use rand::random; /// /// #[tokio::main] @@ -148,10 +148,10 @@ impl Wallet { /// /// use anyhow::Result; /// use cdk::amount::{Amount, SplitTarget}; - /// use cdk_sqlite::wallet::memory; /// use cdk::nuts::nut00::ProofsMethods; /// use cdk::nuts::CurrencyUnit; /// use cdk::wallet::Wallet; + /// use cdk_sqlite::wallet::memory; /// use rand::random; /// /// #[tokio::main] diff --git a/crates/cdk/src/wallet/mod.rs b/crates/cdk/src/wallet/mod.rs index bcad3af4..7c55f1d1 100644 --- a/crates/cdk/src/wallet/mod.rs +++ b/crates/cdk/src/wallet/mod.rs @@ -134,13 +134,12 @@ impl Wallet { /// Create new [`Wallet`] using the builder pattern /// # Synopsis /// ```rust - /// use std::sync::Arc; - /// use bitcoin::Network; /// use bitcoin::bip32::Xpriv; + /// use std::sync::Arc; /// - /// use cdk_sqlite::wallet::memory; /// use cdk::nuts::CurrencyUnit; /// use cdk::wallet::{Wallet, WalletBuilder}; + /// use cdk_sqlite::wallet::memory; /// use rand::random; /// /// async fn test() -> anyhow::Result<()> { @@ -150,11 +149,11 @@ impl Wallet { /// /// let localstore = memory::empty().await?; /// let wallet = WalletBuilder::new() - /// .mint_url(mint_url.parse().unwrap()) - /// .unit(unit) - /// .localstore(Arc::new(localstore)) - /// .seed(&seed) - /// .build(); + /// .mint_url(mint_url.parse().unwrap()) + /// .unit(unit) + /// .localstore(Arc::new(localstore)) + /// .seed(&seed) + /// .build(); /// Ok(()) /// } /// ```