mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
Merge pull request #2649 from benthecarman/display-outpoint
Impl Display for Outpoint
This commit is contained in:
commit
89749eddec
1 changed files with 6 additions and 0 deletions
|
@ -75,6 +75,12 @@ impl OutPoint {
|
|||
}
|
||||
}
|
||||
|
||||
impl core::fmt::Display for OutPoint {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
write!(f, "{}:{}", self.txid, self.index)
|
||||
}
|
||||
}
|
||||
|
||||
impl_writeable!(OutPoint, { txid, index });
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Reference in a new issue