You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/impls.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -391,7 +391,7 @@ mod lang_ints {
391
391
num_conv!{usize=> n-isize}
392
392
}
393
393
394
-
#[cfg(not(feature = "no_std"))]
394
+
#[cfg(feature = "std")]
395
395
mod lang_floats {
396
396
use{ApproxFrom,ApproxScheme};
397
397
useValueFrom;
@@ -434,7 +434,7 @@ mod lang_floats {
434
434
}
435
435
}
436
436
437
-
#[cfg(not(feature = "no_std"))]
437
+
#[cfg(feature = "std")]
438
438
mod lang_int_to_float {
439
439
num_conv!{i8=> w f32, w f64}
440
440
num_conv!{i16=> w f32, w f64}
@@ -452,7 +452,7 @@ mod lang_int_to_float {
452
452
#[32] w f64, #[64] nf [,9_007_199_254_740_992]f64}
453
453
}
454
454
455
-
#[cfg(not(feature = "no_std"))]
455
+
#[cfg(feature = "std")]
456
456
mod lang_float_to_int {
457
457
/*
458
458
We use explicit ranges on narrowing float-to-int conversions because it *turns out* that just because you can cast an integer to a float, this *does not* mean you can cast it back and get the original input. The non-explicit-range implementation of `fan` *depends* on this, so it was kinda *totally broken* for narrowing conversions.
0 commit comments