Skip to content

Commit 70b5c57

Browse files
XAMPPRockycuviper
authored andcommitted
Update float.rs
1 parent cabfb0b commit 70b5c57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/float.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@ mod tests {
23042304
}
23052305

23062306
#[test]
2307-
#[cfg(any(feature = "std", feature = "libm"))]
2307+
#[cfg(any(feature = "std", feature = "libm"))]
23082308
fn copysign() {
23092309
use float::Float;
23102310
test_copysign_generic(2.0_f32, -2.0_f32, f32::nan());
@@ -2331,6 +2331,7 @@ mod tests {
23312331
assert!(nan.copysign(n).is_sign_negative());
23322332
}
23332333

2334+
#[cfg(any(feature = "std", feature = "libm"))]
23342335
fn test_copysign_generic<F: ::float::Float + core::fmt::Debug>(p: F, n: F, nan: F) {
23352336
assert!(p.is_sign_positive());
23362337
assert!(n.is_sign_negative());

0 commit comments

Comments
 (0)