diff --git a/units/src/lib.rs b/units/src/lib.rs index 393b5ced1..f123034ce 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -45,14 +45,17 @@ pub mod parse; #[cfg(feature = "alloc")] pub mod weight; -pub use self::amount::ParseAmountError; #[doc(inline)] pub use self::amount::{Amount, SignedAmount}; #[cfg(feature = "alloc")] -pub use self::parse::ParseIntError; -#[cfg(feature = "alloc")] #[doc(inline)] -pub use self::{fee_rate::FeeRate, weight::Weight}; +#[rustfmt::skip] +pub use self::{ + fee_rate::FeeRate, + // ParseIntError is used by other modules, so we re-export it. + parse::ParseIntError, + weight::Weight +}; #[rustfmt::skip] #[allow(unused_imports)]