Skip to content

Commit 6aaff33

Browse files
committed
Explicitly test FloatCore in to_degrees_rounding
1 parent 9ca219c commit 6aaff33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/float.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,8 @@ mod tests {
20192019
// To avoid the failure, the test is limited to `no_std` builds.
20202020
#[cfg(not(feature = "std"))]
20212021
fn to_degrees_rounding() {
2022-
assert_eq!(1_f32.to_degrees(), 57.2957795130823208767981548141051703);
2022+
use float::FloatCore;
2023+
2024+
assert_eq!(FloatCore::to_degrees(1_f32), 57.2957795130823208767981548141051703);
20232025
}
20242026
}

0 commit comments

Comments
 (0)