ignore some clippy warnings

This commit is contained in:
Gered 2024-09-03 00:06:52 -04:00
parent 0cbd5366fd
commit a18aee300d
2 changed files with 2 additions and 0 deletions

View file

@ -268,6 +268,7 @@ mod tests {
assert!(nearly_equal(0.0, angle, 0.0001));
}
#[allow(clippy::approx_constant)]
#[test]
pub fn test_angle_to_direction() {
let (x, y) = angle_to_direction(RADIANS_0);

View file

@ -435,6 +435,7 @@ mod tests {
assert!(nearly_equal(crate::math::RIGHT, Vector2::RIGHT.angle(), 0.0001));
}
#[allow(clippy::approx_constant)]
#[test]
pub fn test_from_angle() {
let v = Vector2::from_angle(RADIANS_0);