From bc7a2996c29cd5f30b524cdcf627ad3716cc649f Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 25 Sep 2024 12:28:13 -0500 Subject: [PATCH] chore: cargo fmt --- src/lib.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1a74cf5..449824f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,10 +4,10 @@ use bitcoin::Address as BitcoinAddress; use bitcoin::Amount as BitcoinAmount; use bitcoin::FeeRate as BitcoinFeeRate; use bitcoin::ScriptBuf as BitcoinScriptBuf; +use bitcoin::Sequence; use bitcoin::Transaction as BitcoinTransaction; use bitcoin::TxIn as BitcoinTxIn; use bitcoin::TxOut as BitcoinTxOut; -use bitcoin::Sequence; pub use bitcoin::BlockHash; pub use bitcoin::OutPoint; @@ -245,11 +245,21 @@ impl Transaction { } pub fn input(&self) -> Vec { - self.0.input.clone().into_iter().map(|tx_in| tx_in.into()).collect() + self.0 + .input + .clone() + .into_iter() + .map(|tx_in| tx_in.into()) + .collect() } pub fn output(&self) -> Vec { - self.0.output.clone().into_iter().map(|tx_out| tx_out.into()).collect() + self.0 + .output + .clone() + .into_iter() + .map(|tx_out| tx_out.into()) + .collect() } pub fn lock_time(&self) -> u32 {