From 9ca219c677a68227ce8a483b9e919910d8b833da Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Tue, 10 Apr 2018 19:56:39 +0200 Subject: [PATCH] Avoid test failure with Rust 1.8 by limiting to no-std builds --- src/float.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/float.rs b/src/float.rs index dbd11d4..830d556 100644 --- a/src/float.rs +++ b/src/float.rs @@ -2015,6 +2015,9 @@ mod tests { } #[test] + // This fails with the forwarded `std` implementation in Rust 1.8. + // 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); }