Skip to content

Commit a4c9435

Browse files
committed
The total_cmp tests don't need Float
1 parent ec24ea2 commit a4c9435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/float.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)