소스 검색

refactor: fixing pre commit hooks checks (#789)

asmo 2 주 전
부모
커밋
d9652d7f53
4개의 변경된 파일9개의 추가작업 그리고 13개의 파일을 삭제
  1. 0 2
      crates/cdk-common/src/pub_sub/index.rs
  2. 0 1
      crates/cdk-mint-rpc/src/mint_rpc_cli/mod.rs
  3. 2 2
      crates/cdk/src/wallet/mint.rs
  4. 7 8
      crates/cdk/src/wallet/mod.rs

+ 0 - 2
crates/cdk-common/src/pub_sub/index.rs

@@ -1,6 +1,4 @@
 //! WS Index
-//!
-//!
 
 use std::fmt::Debug;
 use std::ops::Deref;

+ 0 - 1
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;

+ 2 - 2
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]

+ 7 - 8
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(())
     /// }
     /// ```