From 42c5640d191fcdd519f31bb687d062d5a7073b80 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 5 Oct 2023 14:38:49 -0500 Subject: [PATCH] Impl Display for Outpoint --- lightning/src/chain/transaction.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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)] -- 2.39.5