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:
Tobin C. Harding 2024-07-23 01:50:44 -05:00
parent d1c876eda5
commit 7a44908aee
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
2 changed files with 2 additions and 4 deletions

View File

@ -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).

View File

@ -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).
///