Skip to content

Commit 89749ed

Browse files
authored
Merge pull request #2649 from benthecarman/display-outpoint
Impl Display for Outpoint
2 parents eea19de + 42c5640 commit 89749ed

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.index)
81+
}
82+
}
83+
7884
impl_writeable!(OutPoint, { txid, index });
7985

8086
#[cfg(test)]

0 commit comments

Comments
 (0)