Don't re-export FloatCore

This avoids breaking `use num_traits::*`.
This commit is contained in:
Vinzent Steinberg 2018-02-07 12:39:29 +01:00
parent 1db660ed56
commit d115dadeb1
3 changed files with 4 additions and 4 deletions

View File

@ -1565,7 +1565,7 @@ mod tests {
#[test]
fn convert_deg_rad() {
use FloatCore;
use float::FloatCore;
for &(deg, rad) in &DEG_RAD_PAIRS {
assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-6);

View File

@ -26,8 +26,8 @@ use core::fmt;
pub use bounds::Bounded;
#[cfg(feature = "std")]
pub use float::Float;
pub use float::{FloatCore, FloatConst};
// pub use real::Real; // NOTE: Don't do this, it breaks `use num_traits::*;`.
pub use float::FloatConst;
// pub use real::{FloatCore, Real}; // NOTE: Don't do this, it breaks `use num_traits::*;`.
pub use identities::{Zero, One, zero, one};
pub use ops::checked::{CheckedAdd, CheckedSub, CheckedMul, CheckedDiv, CheckedShl, CheckedShr};
pub use ops::wrapping::{WrappingAdd, WrappingMul, WrappingSub};

View File

@ -124,7 +124,7 @@ macro_rules! signed_float_impl {
/// - `NAN` if the number is NaN
#[inline]
fn signum(&self) -> $t {
use FloatCore;
use float::FloatCore;
FloatCore::signum(*self)
}