From e6af569490952eceddfc2deb20a8fd0140ac74cd Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Fri, 26 Nov 2021 11:14:34 +1100 Subject: [PATCH] Move imports to top of file These imports are unusually placed, from the code comment it seems the reason is stale. Move imports to top of file as is typical. --- src/util/psbt/map/mod.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/util/psbt/map/mod.rs b/src/util/psbt/map/mod.rs index ef0c7963..a2a58d71 100644 --- a/src/util/psbt/map/mod.rs +++ b/src/util/psbt/map/mod.rs @@ -20,6 +20,13 @@ use consensus::encode; use util::psbt; use util::psbt::raw; +mod global; +mod input; +mod output; + +pub use self::input::{Input, PsbtSigHashType}; +pub use self::output::{Output, TapTree}; + /// A trait that describes a PSBT key-value map. pub trait Map { /// Attempt to insert a key-value pair. @@ -47,12 +54,3 @@ pub trait Map { Ok(len + encode::Encodable::consensus_encode(&0x00_u8, s)?) } } - -// place at end to pick up macros -mod global; -mod input; -mod output; - -pub use self::input::{Input, PsbtSigHashType}; -pub use self::output::Output; -pub use self::output::TapTree;