From 8bf8c7d080194872188e1ab7a6f14c06b121e371 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Tue, 30 Jul 2024 14:43:32 -0300 Subject: [PATCH] chore: fix clippy lints --- crates/chain/src/indexer/spk_txout.rs | 2 +- crates/wallet/src/wallet/changeset.rs | 1 - crates/wallet/src/wallet/tx_builder.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/chain/src/indexer/spk_txout.rs b/crates/chain/src/indexer/spk_txout.rs index b55bd72a1..286e5d2dc 100644 --- a/crates/chain/src/indexer/spk_txout.rs +++ b/crates/chain/src/indexer/spk_txout.rs @@ -84,7 +84,7 @@ impl SpkTxOutIndex { /// 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 { let mut scanned_indices = BTreeSet::new(); diff --git a/crates/wallet/src/wallet/changeset.rs b/crates/wallet/src/wallet/changeset.rs index d10060031..46b2f4321 100644 --- a/crates/wallet/src/wallet/changeset.rs +++ b/crates/wallet/src/wallet/changeset.rs @@ -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(); diff --git a/crates/wallet/src/wallet/tx_builder.rs b/crates/wallet/src/wallet/tx_builder.rs index 9c3091227..962edd56f 100644 --- a/crates/wallet/src/wallet/tx_builder.rs +++ b/crates/wallet/src/wallet/tx_builder.rs @@ -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