From 69ce8f448b7f786f16449a261e09e75c918f7dbb Mon Sep 17 00:00:00 2001 From: "Jamil Lambert, PhD" Date: Mon, 9 Jun 2025 09:35:44 +0100 Subject: [PATCH] Remove unneeded return statement New clipply lint in rustc nightly "unneeded `return` statement". Remove it. --- bitcoin/src/blockdata/transaction.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index a07a82e99..f169f4168 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -517,11 +517,11 @@ impl TransactionExtPriv for Transaction { 1 } else if witness_program.is_p2wsh() { // Treat the last item of the witness as the witnessScript - return witness + witness .last() .map(Script::from_bytes) .map(|s| s.count_sigops()) - .unwrap_or(0); + .unwrap_or(0) } else { 0 }