Use core::f32 instead of std::f32

This commit is contained in:
Toshiki Teramura 2019-08-17 17:58:02 +09:00
parent e8dce19146
commit f20d74fce8
1 changed files with 2 additions and 2 deletions

View File

@ -418,8 +418,8 @@ fn clamp_test() {
assert_eq!(-1.0, clamp_lower(-2.0, -1.0));
assert_eq!(-1.0, clamp_upper(1.0, -1.0));
assert_eq!(-2.0, clamp_upper(-2.0, -1.0));
assert!(clamp_lower(std::f32::NAN, 1.0).is_nan());
assert!(clamp_upper(std::f32::NAN, 1.0).is_nan());
assert!(clamp_lower(::core::f32::NAN, 1.0).is_nan());
assert!(clamp_upper(::core::f32::NAN, 1.0).is_nan());
}
#[test]