From: Matt Corallo Date: Mon, 21 Nov 2022 23:27:44 +0000 (+0000) Subject: Drop unnecessary clone X-Git-Tag: v0.0.113~24^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=refs%2Fheads%2F2022-11-dumb-lookup;p=rust-lightning Drop unnecessary clone --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index a672d01e8..d788356d6 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -3729,7 +3729,7 @@ impl ChannelManager= MPP_TIMEOUT_TICKS }) { - timed_out_mpp_htlcs.extend(htlcs.into_iter().map(|htlc| (htlc.prev_hop.clone(), payment_hash.clone()))); + timed_out_mpp_htlcs.extend(htlcs.drain(..).map(|htlc: ClaimableHTLC| (htlc.prev_hop, *payment_hash))); return false; } }