}
}
-impl<'a, A: Anchor> Anchor for &'a A {
+impl<A: Anchor> Anchor for &A {
fn anchor_block(&self) -> BlockId {
<A as Anchor>::anchor_block(self)
}
pub tx_pos: usize,
}
-impl<'b> From<TxPosInBlock<'b>> for BlockId {
+impl From<TxPosInBlock<'_>> for BlockId {
fn from(pos: TxPosInBlock) -> Self {
pos.block_id
}
}
-impl<'b> From<TxPosInBlock<'b>> for ConfirmationBlockTime {
+impl From<TxPosInBlock<'_>> for ConfirmationBlockTime {
fn from(pos: TxPosInBlock) -> Self {
Self {
block_id: pos.block_id,
pub last_seen_unconfirmed: Option<u64>,
}
-impl<'a, T, A> Deref for TxNode<'a, T, A> {
+impl<T, A> Deref for TxNode<'_, T, A> {
type Target = T;
fn deref(&self) -> &Self::Target {
}
}
-impl<'g, A, F, O> Iterator for TxAncestors<'g, A, F, O>
+impl<A, F, O> Iterator for TxAncestors<'_, A, F, O>
where
F: FnMut(usize, Arc<Transaction>) -> Option<O>,
{
}
}
-impl<'g, A, F, O> Iterator for TxDescendants<'g, A, F, O>
+impl<A, F, O> Iterator for TxDescendants<'_, A, F, O>
where
F: FnMut(usize, Txid) -> Option<O>,
{
Err(CannotConnectError),
}
-impl<'a> TestLocalChain<'a> {
+impl TestLocalChain<'_> {
fn run(mut self) {
let got_changeset = match self.chain.apply_update(self.update) {
Ok(changeset) => changeset,
OutPoint(OutPoint),
}
-impl<'i, I: core::fmt::Debug + core::any::Any> core::fmt::Display for SyncItem<'i, I> {
+impl<I: core::fmt::Debug + core::any::Any> core::fmt::Display for SyncItem<'_, I> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
SyncItem::Spk(i, spk) => {
inspect: &'r mut Box<InspectFullScan<K>>,
}
-impl<'r, K: Ord + Clone> Iterator for KeychainSpkIter<'r, K> {
+impl<K: Ord + Clone> Iterator for KeychainSpkIter<'_, K> {
type Item = Indexed<ScriptBuf>;
fn next(&mut self) -> Option<Self::Item> {
impl<'r, I, Item> ExactSizeIterator for SyncIter<'r, I, Item> where SyncIter<'r, I, Item>: Iterator {}
-impl<'r, I> Iterator for SyncIter<'r, I, ScriptBuf> {
+impl<I> Iterator for SyncIter<'_, I, ScriptBuf> {
type Item = ScriptBuf;
fn next(&mut self) -> Option<Self::Item> {
}
}
-impl<'r, I> Iterator for SyncIter<'r, I, Txid> {
+impl<I> Iterator for SyncIter<'_, I, Txid> {
type Item = Txid;
fn next(&mut self) -> Option<Self::Item> {
}
}
-impl<'r, I> Iterator for SyncIter<'r, I, OutPoint> {
+impl<I> Iterator for SyncIter<'_, I, OutPoint> {
type Item = OutPoint;
fn next(&mut self) -> Option<Self::Item> {
}
}
-impl<'t, T> Iterator for EntryIter<'t, T>
+impl<T> Iterator for EntryIter<'_, T>
where
T: serde::de::DeserializeOwned,
{
}
}
-impl<'t, T> Drop for EntryIter<'t, T> {
+impl<T> Drop for EntryIter<'_, T> {
fn drop(&mut self) {
// This syncs the underlying file's offset with the buffer's position. This way, we
// maintain the correct position to start the next read/write.
pub electrsd: electrsd::Conf<'a>,
}
-impl<'a> Default for Config<'a> {
+impl Default for Config<'_> {
/// Use the default configuration plus set `http_enabled = true` for [`electrsd::Conf`]
/// which is required for testing `bdk_esplora`.
fn default() -> Self {
network: Network,
}
- impl<'s, 'd> miniscript::Translator<DescriptorPublicKey, String, DescriptorError>
- for Translator<'s, 'd>
- {
+ impl miniscript::Translator<DescriptorPublicKey, String, DescriptorError> for Translator<'_, '_> {
fn pk(&mut self, pk: &DescriptorPublicKey) -> Result<String, DescriptorError> {
let secp = &self.secp;
}
#[cfg(feature = "rusqlite")]
-impl<'c> WalletPersister for bdk_chain::rusqlite::Transaction<'c> {
+impl WalletPersister for bdk_chain::rusqlite::Transaction<'_> {
type Error = bdk_chain::rusqlite::Error;
fn initialize(persister: &mut Self) -> Result<ChangeSet, Self::Error> {
}
}
-impl<'a, Cs: CoinSelectionAlgorithm> TxBuilder<'a, Cs> {
+impl<Cs: CoinSelectionAlgorithm> TxBuilder<'_, Cs> {
/// Finish building the transaction.
///
/// Uses the thread-local random number generator (rng).