From 0624d96415337e7c1a60d978bb0e5b783990fb62 Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Tue, 24 Jun 2025 12:08:12 +0100 Subject: [PATCH] Use the anonymous lifetime for path Lint error from new nightly "lifetime flowing from input to output with different syntax can be confusing". Add the anonymous lifetime to make it explicit. --- bitcoin/src/blockdata/transaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index 7bcba7a23..654388b48 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -309,7 +309,7 @@ pub trait TransactionExt: sealed::Sealed { /// This is useful in combination with [`predict_weight`] if you have the transaction already /// constructed with a dummy value in the fee output which you'll adjust after calculating the /// weight. - fn script_pubkey_lens(&self) -> TxOutToScriptPubkeyLengthIter; + fn script_pubkey_lens(&self) -> TxOutToScriptPubkeyLengthIter<'_>; /// Counts the total number of sigops. ///