Skip to content

Commit 1ae6383

Browse files
committed
add a missing feature check for use statement
1 parent eebf756 commit 1ae6383

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use core::ops::{
2424
use core::str::FromStr;
2525

2626
pub use num_traits::float::FloatCore;
27+
#[cfg(any(feature = "std", feature = "libm"))]
2728
use num_traits::real::Real;
2829
use num_traits::{
2930
AsPrimitive, Bounded, FloatConst, FromPrimitive, Num, NumCast, One, Signed, ToPrimitive, Zero,

0 commit comments

Comments
 (0)