From 5d7101ae0bbe313c06ce6a67c32e516b16841c8f Mon Sep 17 00:00:00 2001 From: Vijfhoek Date: Mon, 7 Jun 2021 01:39:08 +0200 Subject: [PATCH] rm -rf unused imports --- src/aabb.rs | 5 +---- src/camera.rs | 2 -- src/state/world_state.rs | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/aabb.rs b/src/aabb.rs index 856d98c..e913365 100644 --- a/src/aabb.rs +++ b/src/aabb.rs @@ -1,7 +1,4 @@ -use std::ops::Sub; - -use cgmath::{Point3, Vector3}; -use itertools::Itertools; +use cgmath::Point3; type T = f32; diff --git a/src/camera.rs b/src/camera.rs index 6b3573e..7d48629 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -1,7 +1,5 @@ use cgmath::{Matrix4, Point3, Rad, Vector3}; -use crate::aabb::Aabb; - #[rustfmt::skip] pub const OPENGL_TO_WGPU_MATRIX: Matrix4 = Matrix4::new( 1.0, 0.0, 0.0, 0.0, diff --git a/src/state/world_state.rs b/src/state/world_state.rs index 77a7f69..3b6d346 100644 --- a/src/state/world_state.rs +++ b/src/state/world_state.rs @@ -1,6 +1,6 @@ use std::time::Duration; -use cgmath::{ElementWise, InnerSpace, Point3, Rad, Vector3}; +use cgmath::{InnerSpace, Point3, Rad, Vector3}; use wgpu::{ util::{BufferInitDescriptor, DeviceExt}, CommandEncoder, SwapChainTexture,