From: Matt Corallo Date: Wed, 7 Dec 2022 00:40:17 +0000 (+0000) Subject: Drop excess mut on `OnchainTxHandler::generate_external_htlc_claim` X-Git-Tag: v0.0.113~7^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=02235782f04308c47a2e13becaeff972cab52185;p=rust-lightning Drop excess mut on `OnchainTxHandler::generate_external_htlc_claim` --- diff --git a/lightning/src/chain/onchaintx.rs b/lightning/src/chain/onchaintx.rs index b75349469..9bfe6fa9a 100644 --- a/lightning/src/chain/onchaintx.rs +++ b/lightning/src/chain/onchaintx.rs @@ -1047,7 +1047,7 @@ impl OnchainTxHandler { #[cfg(anchors)] pub(crate) fn generate_external_htlc_claim( - &mut self, outp: &::bitcoin::OutPoint, preimage: &Option + &self, outp: &::bitcoin::OutPoint, preimage: &Option ) -> Option { let find_htlc = |holder_commitment: &HolderCommitmentTransaction| -> Option { let trusted_tx = holder_commitment.trust();