From: benthecarman Date: Thu, 5 Oct 2023 19:38:49 +0000 (-0500) Subject: Impl Display for Outpoint X-Git-Tag: v0.0.118~25^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=42c5640d191fcdd519f31bb687d062d5a7073b80;p=rust-lightning Impl Display for Outpoint --- diff --git a/lightning/src/chain/transaction.rs b/lightning/src/chain/transaction.rs index 22e7ec2c2..39a0a5449 100644 --- a/lightning/src/chain/transaction.rs +++ b/lightning/src/chain/transaction.rs @@ -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)]