diff --git a/src/lib.rs b/src/lib.rs index 1aa572a..4e2a72a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -176,8 +176,9 @@ mod tests_nostd; use crate::consts::*; #[cfg(feature = "std")] pub use crate::fmt::{Base, SizeFormatter, Style}; -use crate::sealed::AsIntermediate; +#[cfg(feature = "std")] pub use crate::from_str::ParseSizeError; +use crate::sealed::AsIntermediate; #[cfg(feature = "std")] type Intermediate = f64;