units: Remove a bunch of feature gateing
Remove `alloc` feature gating from all modules in `units`!
This commit is contained in:
parent
e347b50614
commit
38b8c6f5ea
|
@ -22,23 +22,16 @@ extern crate alloc;
|
||||||
extern crate std;
|
extern crate std;
|
||||||
|
|
||||||
pub mod amount;
|
pub mod amount;
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
pub mod block;
|
pub mod block;
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
pub mod fee_rate;
|
pub mod fee_rate;
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
pub mod locktime;
|
pub mod locktime;
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
pub mod parse;
|
pub mod parse;
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
pub mod weight;
|
pub mod weight;
|
||||||
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use self::amount::{Amount, SignedAmount};
|
|
||||||
#[cfg(feature = "alloc")]
|
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
pub use self::{
|
pub use self::{
|
||||||
|
amount::{Amount, SignedAmount},
|
||||||
block::{BlockHeight, BlockInterval},
|
block::{BlockHeight, BlockInterval},
|
||||||
fee_rate::FeeRate,
|
fee_rate::FeeRate,
|
||||||
weight::Weight
|
weight::Weight
|
||||||
|
|
Loading…
Reference in New Issue