use f32::EPSILON from std for rust version < 1.43

This commit is contained in:
Marc-Antoine Arnaud 2021-02-08 14:16:16 +01:00
parent df49bff4be
commit 019b7c10ff

View File

@ -47,7 +47,7 @@ fn skip_serializing_if_for_struct() {
}
fn check_f32_function(&self, value: &f32) -> bool {
(value - 0.0).abs() < f32::EPSILON
(value - 0.0).abs() < std::f32::EPSILON
}
}