From ab9b8915fc3af7eb5dc2a10ae966468d9e50d005 Mon Sep 17 00:00:00 2001 From: Matthew Rodusek <7519129+bitwizeshift@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:39:09 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Remove=20redundant=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An in a unit test was unnecessary, and this is tripping the newly enabled errors for redundant/unnused imports. This removes the redundant import. --- alloy/src/math/vec/vec2.rs | 3 --- alloy/src/math/vec/vec3.rs | 3 --- alloy/src/math/vec/vec4.rs | 3 --- 3 files changed, 9 deletions(-) diff --git a/alloy/src/math/vec/vec2.rs b/alloy/src/math/vec/vec2.rs index d043ff6..f03afe6 100644 --- a/alloy/src/math/vec/vec2.rs +++ b/alloy/src/math/vec/vec2.rs @@ -1387,15 +1387,12 @@ impl fmt::Display for Vector2 { #[cfg(test)] mod test { - use crate::cmp::AlmostEq; - use super::*; #[test] fn test_vec2() { let vec = Vector2::new(4.0, 2.0); - use crate::cmp::AlmostEq; let magnitude = vec.square_magnitude(); assert!(magnitude.almost_eq(&20.0)) diff --git a/alloy/src/math/vec/vec3.rs b/alloy/src/math/vec/vec3.rs index 44a429b..a2d6dc7 100644 --- a/alloy/src/math/vec/vec3.rs +++ b/alloy/src/math/vec/vec3.rs @@ -1500,15 +1500,12 @@ impl fmt::Display for Vector3 { #[cfg(test)] mod test { - use crate::cmp::AlmostEq; - use super::*; #[test] fn test_vec3() { let vec = Vector3::new(4.0, 2.0, 0.0); - use crate::cmp::AlmostEq; let magnitude = vec.square_magnitude(); assert!(magnitude.almost_eq(&20.0)) diff --git a/alloy/src/math/vec/vec4.rs b/alloy/src/math/vec/vec4.rs index 0a274c2..a2e15ac 100644 --- a/alloy/src/math/vec/vec4.rs +++ b/alloy/src/math/vec/vec4.rs @@ -1596,15 +1596,12 @@ impl fmt::Display for Vector4 { #[cfg(test)] mod test { - use crate::cmp::AlmostEq; - use super::*; #[test] fn test_vec4() { let vec = Vector4::new(4.0, 2.0, 0.0, 0.0); - use crate::cmp::AlmostEq; let magnitude = vec.square_magnitude(); assert!(magnitude.almost_eq(&20.0))