Skip to content

Commit 95dfb37

Browse files
committed
chore(chain): stop clippy from complaining
1 parent 5b62242 commit 95dfb37

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

crates/chain/src/changeset.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// A changeset containing [`crate`] structures typically persisted together.
2-
#[cfg(feature = "miniscript")]
32
#[derive(Debug, Clone, PartialEq)]
43
#[cfg_attr(
54
feature = "serde",
@@ -21,7 +20,6 @@ pub struct CombinedChangeSet<K, A> {
2120
pub network: Option<bitcoin::Network>,
2221
}
2322

24-
#[cfg(feature = "miniscript")]
2523
impl<K, A> core::default::Default for CombinedChangeSet<K, A> {
2624
fn default() -> Self {
2725
Self {
@@ -32,7 +30,6 @@ impl<K, A> core::default::Default for CombinedChangeSet<K, A> {
3230
}
3331
}
3432

35-
#[cfg(feature = "miniscript")]
3633
impl<K: Ord, A: crate::Anchor> crate::Append for CombinedChangeSet<K, A> {
3734
fn append(&mut self, other: Self) {
3835
crate::Append::append(&mut self.chain, other.chain);
@@ -51,7 +48,6 @@ impl<K: Ord, A: crate::Anchor> crate::Append for CombinedChangeSet<K, A> {
5148
}
5249
}
5350

54-
#[cfg(feature = "miniscript")]
5551
impl<K, A> From<crate::local_chain::ChangeSet> for CombinedChangeSet<K, A> {
5652
fn from(chain: crate::local_chain::ChangeSet) -> Self {
5753
Self {
@@ -61,7 +57,6 @@ impl<K, A> From<crate::local_chain::ChangeSet> for CombinedChangeSet<K, A> {
6157
}
6258
}
6359

64-
#[cfg(feature = "miniscript")]
6560
impl<K, A> From<crate::indexed_tx_graph::ChangeSet<A, crate::keychain::ChangeSet<K>>>
6661
for CombinedChangeSet<K, A>
6762
{
@@ -75,7 +70,6 @@ impl<K, A> From<crate::indexed_tx_graph::ChangeSet<A, crate::keychain::ChangeSet
7570
}
7671
}
7772

78-
#[cfg(feature = "miniscript")]
7973
impl<K, A> From<crate::keychain::ChangeSet<K>> for CombinedChangeSet<K, A> {
8074
fn from(indexer: crate::keychain::ChangeSet<K>) -> Self {
8175
Self {

crates/chain/src/keychain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
#[cfg(feature = "miniscript")]
1414
mod txout_index;
15-
use bitcoin::{Amount, ScriptBuf};
15+
use bitcoin::Amount;
1616
#[cfg(feature = "miniscript")]
1717
pub use txout_index::*;
1818

crates/chain/src/keychain/txout_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
DescriptorExt, DescriptorId, SpkIterator, SpkTxOutIndex,
77
};
88
use alloc::{borrow::ToOwned, vec::Vec};
9-
use bitcoin::{Amount, OutPoint, Script, SignedAmount, Transaction, TxOut, Txid};
9+
use bitcoin::{Amount, OutPoint, Script, ScriptBuf, SignedAmount, Transaction, TxOut, Txid};
1010
use core::{
1111
fmt::Debug,
1212
ops::{Bound, RangeBounds},

crates/chain/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ pub use descriptor_ext::{DescriptorExt, DescriptorId};
5050
mod spk_iter;
5151
#[cfg(feature = "miniscript")]
5252
pub use spk_iter::*;
53+
#[cfg(feature = "miniscript")]
5354
mod changeset;
55+
#[cfg(feature = "miniscript")]
5456
pub use changeset::*;
5557
pub mod spk_client;
5658

0 commit comments

Comments
 (0)