From 60972e876a530914468baa39157dbecd14a8d3de Mon Sep 17 00:00:00 2001 From: YakoYakoYokuYoku <39890836+YakoYakoYokuYoku@users.noreply.github.com> Date: Sun, 10 Feb 2019 09:30:09 -0300 Subject: [PATCH] Fixing float.rs --- src/float.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/float.rs b/src/float.rs index 3ba0edd..7f41d85 100644 --- a/src/float.rs +++ b/src/float.rs @@ -1802,7 +1802,7 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg { /// assert!(n.imag() == 0.0f64); /// ``` fn imag(self) -> Self { - self * Self::zero() + Self::zero() } /// Returns the mantissa, base 2 exponent, and sign as integers, respectively. @@ -1901,8 +1901,6 @@ macro_rules! float_impl { Self::asinh(self) -> Self; Self::acosh(self) -> Self; Self::atanh(self) -> Self; - Self::real(self) -> Self; - Self::imag(self) -> Self; } } };