File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2414,17 +2414,17 @@ mod tests {
24142414
24152415 #[ test]
24162416 fn total_cmp ( ) {
2417- use crate :: float:: { Float , TotalOrder } ;
2417+ use crate :: float:: TotalOrder ;
24182418 use core:: cmp:: Ordering ;
24192419 use core:: { f32, f64} ;
24202420
2421- fn check_eq < T : Float + TotalOrder > ( x : T , y : T ) {
2421+ fn check_eq < T : TotalOrder > ( x : T , y : T ) {
24222422 assert_eq ! ( x. total_cmp( & y) , Ordering :: Equal ) ;
24232423 }
2424- fn check_lt < T : Float + TotalOrder > ( x : T , y : T ) {
2424+ fn check_lt < T : TotalOrder > ( x : T , y : T ) {
24252425 assert_eq ! ( x. total_cmp( & y) , Ordering :: Less ) ;
24262426 }
2427- fn check_gt < T : Float + TotalOrder > ( x : T , y : T ) {
2427+ fn check_gt < T : TotalOrder > ( x : T , y : T ) {
24282428 assert_eq ! ( x. total_cmp( & y) , Ordering :: Greater ) ;
24292429 }
24302430
You can’t perform that action at this time.
0 commit comments