Don't re-export FloatCore
This avoids breaking `use num_traits::*`.
This commit is contained in:
parent
1db660ed56
commit
d115dadeb1
|
@ -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);
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue