From 02c7d504fadfc31fed588393d57dfd89f3a0c2b6 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 27 Aug 2024 16:25:35 +1000 Subject: [PATCH] Add tmp module around TxOut impl block The two `TxOut` fields are public and there are no construtors or getters to move, only the associated const `NULL`. Add a tmp module around the big impl block so we can trick the formatter into indenting before we add the extension trait. --- bitcoin/src/blockdata/transaction.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitcoin/src/blockdata/transaction.rs b/bitcoin/src/blockdata/transaction.rs index c4a4600dd..18be1d144 100644 --- a/bitcoin/src/blockdata/transaction.rs +++ b/bitcoin/src/blockdata/transaction.rs @@ -354,6 +354,8 @@ impl TxOut { TxOut { value: Amount::from_sat(0xffffffffffffffff), script_pubkey: ScriptBuf::new() }; } +mod tmp { +use super::*; impl TxOut { /// The weight of this output. /// @@ -403,6 +405,7 @@ impl TxOut { TxOut { value: script_pubkey.minimal_non_dust_custom(dust_relay_fee), script_pubkey } } } +} #[cfg(feature = "arbitrary")] impl<'a> Arbitrary<'a> for TxOut {