Skip to content

Commit 941bca0

Browse files
committed
1 parent 2586e1e commit 941bca0

File tree

9 files changed

+18
-20
lines changed

9 files changed

+18
-20
lines changed

crates/chain/src/tx_data_traits.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub trait Anchor: core::fmt::Debug + Clone + Eq + PartialOrd + Ord + core::hash:
7676
}
7777
}
7878

79-
impl<'a, A: Anchor> Anchor for &'a A {
79+
impl<A: Anchor> Anchor for &A {
8080
fn anchor_block(&self) -> BlockId {
8181
<A as Anchor>::anchor_block(self)
8282
}
@@ -112,13 +112,13 @@ pub struct TxPosInBlock<'b> {
112112
pub tx_pos: usize,
113113
}
114114

115-
impl<'b> From<TxPosInBlock<'b>> for BlockId {
115+
impl From<TxPosInBlock<'_>> for BlockId {
116116
fn from(pos: TxPosInBlock) -> Self {
117117
pos.block_id
118118
}
119119
}
120120

121-
impl<'b> From<TxPosInBlock<'b>> for ConfirmationBlockTime {
121+
impl From<TxPosInBlock<'_>> for ConfirmationBlockTime {
122122
fn from(pos: TxPosInBlock) -> Self {
123123
Self {
124124
block_id: pos.block_id,

crates/chain/src/tx_graph.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub struct TxNode<'a, T, A> {
183183
pub last_seen_unconfirmed: Option<u64>,
184184
}
185185

186-
impl<'a, T, A> Deref for TxNode<'a, T, A> {
186+
impl<T, A> Deref for TxNode<'_, T, A> {
187187
type Target = T;
188188

189189
fn deref(&self) -> &Self::Target {
@@ -1350,7 +1350,7 @@ where
13501350
}
13511351
}
13521352

1353-
impl<'g, A, F, O> Iterator for TxAncestors<'g, A, F, O>
1353+
impl<A, F, O> Iterator for TxAncestors<'_, A, F, O>
13541354
where
13551355
F: FnMut(usize, Arc<Transaction>) -> Option<O>,
13561356
{
@@ -1470,7 +1470,7 @@ where
14701470
}
14711471
}
14721472

1473-
impl<'g, A, F, O> Iterator for TxDescendants<'g, A, F, O>
1473+
impl<A, F, O> Iterator for TxDescendants<'_, A, F, O>
14741474
where
14751475
F: FnMut(usize, Txid) -> Option<O>,
14761476
{

crates/chain/tests/test_local_chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum ExpectedResult<'a> {
3030
Err(CannotConnectError),
3131
}
3232

33-
impl<'a> TestLocalChain<'a> {
33+
impl TestLocalChain<'_> {
3434
fn run(mut self) {
3535
let got_changeset = match self.chain.apply_update(self.update) {
3636
Ok(changeset) => changeset,

crates/core/src/spk_client.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub enum SyncItem<'i, I> {
2121
OutPoint(OutPoint),
2222
}
2323

24-
impl<'i, I: core::fmt::Debug + core::any::Any> core::fmt::Display for SyncItem<'i, I> {
24+
impl<I: core::fmt::Debug + core::any::Any> core::fmt::Display for SyncItem<'_, I> {
2525
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
2626
match self {
2727
SyncItem::Spk(i, spk) => {
@@ -485,7 +485,7 @@ struct KeychainSpkIter<'r, K> {
485485
inspect: &'r mut Box<InspectFullScan<K>>,
486486
}
487487

488-
impl<'r, K: Ord + Clone> Iterator for KeychainSpkIter<'r, K> {
488+
impl<K: Ord + Clone> Iterator for KeychainSpkIter<'_, K> {
489489
type Item = Indexed<ScriptBuf>;
490490

491491
fn next(&mut self) -> Option<Self::Item> {
@@ -511,7 +511,7 @@ impl<'r, I, Item> SyncIter<'r, I, Item> {
511511

512512
impl<'r, I, Item> ExactSizeIterator for SyncIter<'r, I, Item> where SyncIter<'r, I, Item>: Iterator {}
513513

514-
impl<'r, I> Iterator for SyncIter<'r, I, ScriptBuf> {
514+
impl<I> Iterator for SyncIter<'_, I, ScriptBuf> {
515515
type Item = ScriptBuf;
516516

517517
fn next(&mut self) -> Option<Self::Item> {
@@ -524,7 +524,7 @@ impl<'r, I> Iterator for SyncIter<'r, I, ScriptBuf> {
524524
}
525525
}
526526

527-
impl<'r, I> Iterator for SyncIter<'r, I, Txid> {
527+
impl<I> Iterator for SyncIter<'_, I, Txid> {
528528
type Item = Txid;
529529

530530
fn next(&mut self) -> Option<Self::Item> {
@@ -537,7 +537,7 @@ impl<'r, I> Iterator for SyncIter<'r, I, Txid> {
537537
}
538538
}
539539

540-
impl<'r, I> Iterator for SyncIter<'r, I, OutPoint> {
540+
impl<I> Iterator for SyncIter<'_, I, OutPoint> {
541541
type Item = OutPoint;
542542

543543
fn next(&mut self) -> Option<Self::Item> {

crates/file_store/src/entry_iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<'t, T> EntryIter<'t, T> {
3333
}
3434
}
3535

36-
impl<'t, T> Iterator for EntryIter<'t, T>
36+
impl<T> Iterator for EntryIter<'_, T>
3737
where
3838
T: serde::de::DeserializeOwned,
3939
{
@@ -71,7 +71,7 @@ where
7171
}
7272
}
7373

74-
impl<'t, T> Drop for EntryIter<'t, T> {
74+
impl<T> Drop for EntryIter<'_, T> {
7575
fn drop(&mut self) {
7676
// This syncs the underlying file's offset with the buffer's position. This way, we
7777
// maintain the correct position to start the next read/write.

crates/testenv/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct Config<'a> {
3939
pub electrsd: electrsd::Conf<'a>,
4040
}
4141

42-
impl<'a> Default for Config<'a> {
42+
impl Default for Config<'_> {
4343
/// Use the default configuration plus set `http_enabled = true` for [`electrsd::Conf`]
4444
/// which is required for testing `bdk_esplora`.
4545
fn default() -> Self {

crates/wallet/src/descriptor/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap) {
145145
network: Network,
146146
}
147147

148-
impl<'s, 'd> miniscript::Translator<DescriptorPublicKey, String, DescriptorError>
149-
for Translator<'s, 'd>
150-
{
148+
impl miniscript::Translator<DescriptorPublicKey, String, DescriptorError> for Translator<'_, '_> {
151149
fn pk(&mut self, pk: &DescriptorPublicKey) -> Result<String, DescriptorError> {
152150
let secp = &self.secp;
153151

crates/wallet/src/wallet/persisted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl<P: AsyncWalletPersister> PersistedWallet<P> {
254254
}
255255

256256
#[cfg(feature = "rusqlite")]
257-
impl<'c> WalletPersister for bdk_chain::rusqlite::Transaction<'c> {
257+
impl WalletPersister for bdk_chain::rusqlite::Transaction<'_> {
258258
type Error = bdk_chain::rusqlite::Error;
259259

260260
fn initialize(persister: &mut Self) -> Result<ChangeSet, Self::Error> {

crates/wallet/src/wallet/tx_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ impl<'a, Cs> TxBuilder<'a, Cs> {
644644
}
645645
}
646646

647-
impl<'a, Cs: CoinSelectionAlgorithm> TxBuilder<'a, Cs> {
647+
impl<Cs: CoinSelectionAlgorithm> TxBuilder<'_, Cs> {
648648
/// Finish building the transaction.
649649
///
650650
/// Uses the thread-local random number generator (rng).

0 commit comments

Comments
 (0)