Skip to content

Commit 3703672

Browse files
authored
Update float.rs
1 parent 029e755 commit 3703672

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/float.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ mod tests {
22822282
}
22832283

22842284
#[test]
2285-
#[cfg(any(feature = "std", feature = "libm"))]
2285+
#[cfg(any(feature = "std", feature = "libm"))]
22862286
fn copysign() {
22872287
use float::Float;
22882288
test_copysign_generic(2.0_f32, -2.0_f32, f32::nan());
@@ -2309,6 +2309,7 @@ mod tests {
23092309
assert!(nan.copysign(n).is_sign_negative());
23102310
}
23112311

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

0 commit comments

Comments
 (0)