ignore some clippy warnings
This commit is contained in:
parent
0cbd5366fd
commit
a18aee300d
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue