Skip to content

Commit 1146c45

Browse files
committed
Impl Display for Outpoint
1 parent 20f287f commit 1146c45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/chain/transaction.rs

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ impl OutPoint {
7575
}
7676
}
7777

78+
impl core::fmt::Display for OutPoint {
79+
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
80+
write!(f, "{}:{}", self.txid, self.vout)
81+
}
82+
}
83+
7884
impl_writeable!(OutPoint, { txid, index });
7985

8086
#[cfg(test)]

0 commit comments

Comments
 (0)