From 37036721f2c9e4e46e20ee7b6a15091b4f8efb9a Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:16:48 +0200 Subject: [PATCH] Update float.rs --- src/float.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/float.rs b/src/float.rs index 33fca5c..fe54437 100644 --- a/src/float.rs +++ b/src/float.rs @@ -2282,7 +2282,7 @@ mod tests { } #[test] - #[cfg(any(feature = "std", feature = "libm"))] + #[cfg(any(feature = "std", feature = "libm"))] fn copysign() { use float::Float; test_copysign_generic(2.0_f32, -2.0_f32, f32::nan()); @@ -2309,6 +2309,7 @@ mod tests { assert!(nan.copysign(n).is_sign_negative()); } + #[cfg(any(feature = "std", feature = "libm"))] fn test_copysign_generic(p: F, n: F, nan: F) { assert!(p.is_sign_positive()); assert!(n.is_sign_negative());