Skip to content

Commit 73763ed

Browse files
committed
f simplify debug
1 parent b9e77bb commit 73763ed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -889,11 +889,7 @@ impl Eq for PendingMPPClaimPointer {}
889889

890890
impl core::fmt::Debug for PendingMPPClaimPointer {
891891
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> Result<(), core::fmt::Error> {
892-
let state = self.0.lock().unwrap();
893-
f.debug_struct("PendingMPPClaimPointer")
894-
.field("channels_without_preimage", &state.channels_without_preimage)
895-
.field("channels_with_preimage", &state.channels_with_preimage)
896-
.finish()
892+
self.0.lock().unwrap().fmt(f)
897893
}
898894
}
899895

0 commit comments

Comments
 (0)