From 3da62c38dcd4df5c15dcc3352df65ae170680ce8 Mon Sep 17 00:00:00 2001 From: YakoYakoYokuYoku <39890836+YakoYakoYokuYoku@users.noreply.github.com> Date: Thu, 21 Feb 2019 16:27:56 -0300 Subject: [PATCH] Fixing still... --- src/float.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/float.rs b/src/float.rs index bed91f6..aa4097c 100644 --- a/src/float.rs +++ b/src/float.rs @@ -895,7 +895,7 @@ impl FloatCore for f64 { /// /// This trait is only available with the `std` feature. #[cfg(feature = "std")] -pub trait Float where Self: Num + Copy + NumCast + Neg + PartialOrd { +pub trait Float: Num + Copy + NumCast + Neg + PartialOrd { /// Returns the `NaN` value. /// /// ``` @@ -1881,7 +1881,7 @@ macro_rules! float_impl { } #[cfg(feature = "std")] -pub trait CommonFloat where Self: Num + Copy + NumCast + Neg { +pub trait CommonFloat: Num + Copy + NumCast + Neg { type Typo; /// Returns `true` if this value is `NaN` and false otherwise.