Fix broken tests
This commit is contained in:
parent
17a14fe0e9
commit
7651100ec1
@ -18,7 +18,7 @@
|
||||
|
||||
pub trait NumExt: Num Eq Ord {}
|
||||
|
||||
pub trait FloatExt: NumExt FuzzyEq {}
|
||||
pub trait FloatExt: NumExt FuzzyEq<Self> {}
|
||||
|
||||
fn greater_than_one<T:NumExt>(n: &T) -> bool { *n > from_int(1) }
|
||||
fn greater_than_one_float<T:FloatExt>(n: &T) -> bool { *n > from_int(1) }
|
||||
|
@ -94,7 +94,7 @@ pub impl i64: IntegerExt {}
|
||||
pub impl int: IntegerExt {}
|
||||
|
||||
|
||||
pub trait FloatExt: NumExt FuzzyEq {}
|
||||
pub trait FloatExt: NumExt FuzzyEq<Self> {}
|
||||
|
||||
pub impl f32: FloatExt {}
|
||||
pub impl f64: FloatExt {}
|
||||
|
Loading…
Reference in New Issue
Block a user