Skip to content

Commit e76bcd2

Browse files
author
Antoine Riard
committed
[TBS] build good on 1.22.0 + correc styles
1 parent 0245a7c commit e76bcd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ln/channelmonitor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,8 @@ impl ChannelMonitor {
289289

290290
let local_signed_commitment_tx = &self.current_local_signed_commitment_tx;
291291
let remote_claimable_outpoints = &self.remote_claimable_outpoints;
292-
self.payment_preimages.retain( | &k, _|
293-
{
294-
for (htlc, _s1, _s2) in &local_signed_commitment_tx.as_ref().expect("Channel needs at least an initial commitment tx !").htlc_outputs {
292+
self.payment_preimages.retain(|&k, _| {
293+
for &(ref htlc, _s1, _s2) in &local_signed_commitment_tx.as_ref().expect("Channel needs at least an initial commitment tx !").htlc_outputs {
295294
if k == htlc.payment_hash {
296295
return true
297296
}

0 commit comments

Comments
 (0)