From 5387e56e810c2f023e3ebd5dd4fc027b3e297efa Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 25 Apr 2024 22:48:54 -0500 Subject: [PATCH] fixup! Implement support for `Size::from_str()` --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;