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 {
2414
2414
2415
2415
#[ test]
2416
2416
fn total_cmp ( ) {
2417
- use crate :: float:: { Float , TotalOrder } ;
2417
+ use crate :: float:: TotalOrder ;
2418
2418
use core:: cmp:: Ordering ;
2419
2419
use core:: { f32, f64} ;
2420
2420
2421
- fn check_eq < T : Float + TotalOrder > ( x : T , y : T ) {
2421
+ fn check_eq < T : TotalOrder > ( x : T , y : T ) {
2422
2422
assert_eq ! ( x. total_cmp( & y) , Ordering :: Equal ) ;
2423
2423
}
2424
- fn check_lt < T : Float + TotalOrder > ( x : T , y : T ) {
2424
+ fn check_lt < T : TotalOrder > ( x : T , y : T ) {
2425
2425
assert_eq ! ( x. total_cmp( & y) , Ordering :: Less ) ;
2426
2426
}
2427
- fn check_gt < T : Float + TotalOrder > ( x : T , y : T ) {
2427
+ fn check_gt < T : TotalOrder > ( x : T , y : T ) {
2428
2428
assert_eq ! ( x. total_cmp( & y) , Ordering :: Greater ) ;
2429
2429
}
2430
2430
You can’t perform that action at this time.
0 commit comments