Skip to content

Commit 3e88b72

Browse files
committed
Drop unnecessary clone
1 parent e7ba103 commit 3e88b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3729,7 +3729,7 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
37293729
htlc.timer_ticks += 1;
37303730
return htlc.timer_ticks >= MPP_TIMEOUT_TICKS
37313731
}) {
3732-
timed_out_mpp_htlcs.extend(htlcs.into_iter().map(|htlc| (htlc.prev_hop.clone(), payment_hash.clone())));
3732+
timed_out_mpp_htlcs.extend(htlcs.drain(..).map(|htlc: ClaimableHTLC| (htlc.prev_hop, *payment_hash)));
37333733
return false;
37343734
}
37353735
}

0 commit comments

Comments
 (0)