Skip to content

Commit

Permalink
🩹 Remove redundant import
Browse files Browse the repository at this point in the history
An in a unit test was unnecessary, and this is tripping the newly
enabled errors for redundant/unnused imports. This removes the redundant
import.
  • Loading branch information
bitwizeshift committed Feb 20, 2024
1 parent e6d298d commit ab9b891
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions alloy/src/math/vec/vec2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 0 additions & 3 deletions alloy/src/math/vec/vec3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 0 additions & 3 deletions alloy/src/math/vec/vec4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit ab9b891

Please sign in to comment.