From f20d74fce84facc1a710dab118edbbe0eb22e5da Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Sat, 17 Aug 2019 17:58:02 +0900 Subject: [PATCH] Use core::f32 instead of std::f32 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 010ccf1..075a729 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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]