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