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.
This commit is contained in:
parent
17c3547add
commit
e6af569490
|
@ -20,6 +20,13 @@ use consensus::encode;
|
||||||
use util::psbt;
|
use util::psbt;
|
||||||
use util::psbt::raw;
|
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.
|
/// A trait that describes a PSBT key-value map.
|
||||||
pub trait Map {
|
pub trait Map {
|
||||||
/// Attempt to insert a key-value pair.
|
/// Attempt to insert a key-value pair.
|
||||||
|
@ -47,12 +54,3 @@ pub trait Map {
|
||||||
Ok(len + encode::Encodable::consensus_encode(&0x00_u8, s)?)
|
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;
|
|
||||||
|
|
Loading…
Reference in New Issue