Skip to content

Commit 186a320

Browse files
tankyleowpaulino
andauthored
rust fmt
Co-authored-by: Wilmer Paulino <[email protected]>
1 parent 107619e commit 186a320

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

lightning/src/ln/channel.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,12 @@ impl OutboundHTLCState {
360360
OutboundHTLCState::AwaitingRemoteRevokeToRemove(_) => generated_by_local,
361361
OutboundHTLCState::AwaitingRemovedRemoteRevoke(_) => false,
362362
}
363-
}
364-
365-
fn preimage(&self) -> Option<PaymentPreimage> {
366363
match self {
367-
OutboundHTLCState::RemoteRemoved(OutboundHTLCOutcome::Success(preimage)) |
368-
OutboundHTLCState::AwaitingRemoteRevokeToRemove(OutboundHTLCOutcome::Success(preimage)) |
369-
OutboundHTLCState::AwaitingRemovedRemoteRevoke(OutboundHTLCOutcome::Success(preimage)) => {
370-
Some(*preimage)
371-
},
364+
OutboundHTLCState::RemoteRemoved(OutboundHTLCOutcome::Success(preimage))
365+
| OutboundHTLCState::AwaitingRemoteRevokeToRemove(OutboundHTLCOutcome::Success(preimage))
366+
| OutboundHTLCState::AwaitingRemovedRemoteRevoke(OutboundHTLCOutcome::Success(preimage)) => {
367+
Some(*preimage)
368+
},
372369
_ => None,
373370
}
374371
}

0 commit comments

Comments
 (0)