]> Untitled Git - bdk/commitdiff
chore: fix clippy lints
authorJose Storopoli <jose@storopoli.io>
Tue, 30 Jul 2024 17:43:32 +0000 (14:43 -0300)
committerJose Storopoli <jose@storopoli.io>
Tue, 30 Jul 2024 17:43:32 +0000 (14:43 -0300)
crates/chain/src/indexer/spk_txout.rs
crates/wallet/src/wallet/changeset.rs
crates/wallet/src/wallet/tx_builder.rs

index b55bd72a1ee6dc6391e9345e466a2e787662808c..286e5d2dc71fb2140b4aefe9981bb89e5758ae21 100644 (file)
@@ -84,7 +84,7 @@ impl<I: Clone + Ord + core::fmt::Debug> SpkTxOutIndex<I> {
     /// Typically, this is used in two situations:
     ///
     /// 1. After loading transaction data from the disk, you may scan over all the txouts to restore all
-    /// your txouts.
+    ///    your txouts.
     /// 2. When getting new data from the chain, you usually scan it before incorporating it into your chain state.
     pub fn scan(&mut self, tx: &Transaction) -> BTreeSet<I> {
         let mut scanned_indices = BTreeSet::new();
index d10060031c32731db1f1912198f3655b339bd4bf..46b2f4321dd6ab22565c2fae00a1e43bf86dd7bf 100644 (file)
@@ -93,7 +93,6 @@ impl ChangeSet {
         Self::init_wallet_sqlite_tables(db_tx)?;
         use chain::rusqlite::OptionalExtension;
         use chain::Impl;
-        use miniscript::{Descriptor, DescriptorPublicKey};
 
         let mut changeset = Self::default();
 
index 9c30912271fc737e2263c92ebb00247c524a65a6..962edd56f654310ca6c893dd90b45348ac6ef8a9 100644 (file)
@@ -575,7 +575,7 @@ impl<'a, Cs> TxBuilder<'a, Cs> {
     ///
     /// This will be used to:
     /// 1. Set the nLockTime for preventing fee sniping.
-    /// **Note**: This will be ignored if you manually specify a nlocktime using [`TxBuilder::nlocktime`].
+    ///    **Note**: This will be ignored if you manually specify a nlocktime using [`TxBuilder::nlocktime`].
     /// 2. Decide whether coinbase outputs are mature or not. If the coinbase outputs are not
     ///    mature at `current_height`, we ignore them in the coin selection.
     ///    If you want to create a transaction that spends immature coinbase inputs, manually