Re-order import statements

The import statements in `psbt/mod.rs` are a bit of a mess, re-order
them in an attempt to group like things and separate out things that are
different (e.g. `pub use` from `use`).

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2022-06-08 14:07:06 +10:00
parent 938b61bf66
commit b80e5aeaab
1 changed files with 9 additions and 11 deletions

View File

@ -9,30 +9,28 @@
use core::cmp; use core::cmp;
use crate::prelude::*;
use crate::io;
use crate::blockdata::script::Script; use crate::blockdata::script::Script;
use crate::blockdata::transaction::{ TxOut, Transaction}; use crate::blockdata::transaction::{ TxOut, Transaction};
use crate::consensus::{encode, Encodable, Decodable}; use crate::consensus::{encode, Encodable, Decodable};
use crate::util::bip32::{ExtendedPubKey, KeySource};
pub use crate::util::sighash::Prevouts; pub use crate::util::sighash::Prevouts;
use crate::prelude::*;
use crate::io;
mod error;
pub use self::error::Error;
pub mod raw;
#[macro_use] #[macro_use]
mod macros; mod macros;
pub mod raw;
pub mod serialize; pub mod serialize;
mod error;
pub use self::error::Error;
mod map; mod map;
pub use self::map::{Input, Output, TapTree, PsbtSighashType, IncompleteTapTree}; pub use self::map::{Input, Output, TapTree, PsbtSighashType, IncompleteTapTree};
use self::map::Map; use self::map::Map;
use crate::util::bip32::{ExtendedPubKey, KeySource};
/// Partially signed transaction, commonly referred to as a PSBT. /// Partially signed transaction, commonly referred to as a PSBT.
pub type Psbt = PartiallySignedTransaction; pub type Psbt = PartiallySignedTransaction;