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.
This commit is contained in:
Tobin C. Harding 2024-08-27 16:25:35 +10:00
parent fa946796eb
commit 02c7d504fa
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,8 @@ impl TxOut {
TxOut { value: Amount::from_sat(0xffffffffffffffff), script_pubkey: ScriptBuf::new() }; TxOut { value: Amount::from_sat(0xffffffffffffffff), script_pubkey: ScriptBuf::new() };
} }
mod tmp {
use super::*;
impl TxOut { impl TxOut {
/// The weight of this output. /// The weight of this output.
/// ///
@ -403,6 +405,7 @@ impl TxOut {
TxOut { value: script_pubkey.minimal_non_dust_custom(dust_relay_fee), script_pubkey } TxOut { value: script_pubkey.minimal_non_dust_custom(dust_relay_fee), script_pubkey }
} }
} }
}
#[cfg(feature = "arbitrary")] #[cfg(feature = "arbitrary")]
impl<'a> Arbitrary<'a> for TxOut { impl<'a> Arbitrary<'a> for TxOut {