From 6aaff332d353eb4fb785521a27fe558441e462b0 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 4 May 2018 12:19:23 -0700 Subject: [PATCH] Explicitly test FloatCore in to_degrees_rounding --- src/float.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/float.rs b/src/float.rs index 830d556..8df3254 100644 --- a/src/float.rs +++ b/src/float.rs @@ -2019,6 +2019,8 @@ mod tests { // To avoid the failure, the test is limited to `no_std` builds. #[cfg(not(feature = "std"))] fn to_degrees_rounding() { - assert_eq!(1_f32.to_degrees(), 57.2957795130823208767981548141051703); + use float::FloatCore; + + assert_eq!(FloatCore::to_degrees(1_f32), 57.2957795130823208767981548141051703); } }