From a18aee300dcaa06eb30c0c9c7c0dd1e4c0567982 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 3 Sep 2024 00:06:52 -0400 Subject: [PATCH] ignore some clippy warnings --- ggdt/src/math/mod.rs | 1 + ggdt/src/math/vector2.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/ggdt/src/math/mod.rs b/ggdt/src/math/mod.rs index 717eb8c..bca1e4b 100644 --- a/ggdt/src/math/mod.rs +++ b/ggdt/src/math/mod.rs @@ -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); diff --git a/ggdt/src/math/vector2.rs b/ggdt/src/math/vector2.rs index 6d94e8a..17c45fe 100644 --- a/ggdt/src/math/vector2.rs +++ b/ggdt/src/math/vector2.rs @@ -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);