primitives: Use wildard re-export in locktimes
We recently decided to use wildcard re-exports when re-exporting things from an identically named module in a sub crate, ie. to mirror the directory structure structure ala core/std. In the `primitives::locktime` modules re-export everything from the `units::locktime` modules using a wildcard.
This commit is contained in:
parent
d1c876eda5
commit
7a44908aee
|
@ -17,9 +17,7 @@ use crate::absolute;
|
|||
|
||||
#[rustfmt::skip] // Keep public re-exports separate.
|
||||
#[doc(inline)]
|
||||
pub use units::locktime::absolute::{
|
||||
Height, Time, LOCK_TIME_THRESHOLD, ConversionError, ParseHeightError, ParseTimeError,
|
||||
};
|
||||
pub use units::locktime::absolute::*;
|
||||
|
||||
/// An absolute lock time value, representing either a block height or a UNIX timestamp (seconds
|
||||
/// since epoch).
|
||||
|
|
|
@ -18,7 +18,7 @@ use crate::Sequence;
|
|||
|
||||
#[rustfmt::skip] // Keep public re-exports separate.
|
||||
#[doc(inline)]
|
||||
pub use units::locktime::relative::{Height, Time, TimeOverflowError};
|
||||
pub use units::locktime::relative::*;
|
||||
|
||||
/// A relative lock time value, representing either a block height or time (512 second intervals).
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue