Skip to content

Commit

Permalink
Remove redundant imports (#783)
Browse files Browse the repository at this point in the history
`cargo +nightly udeps` complained with ``warning: the item `Projection`
is imported redundantly`` (and similar).
  • Loading branch information
Indy2222 authored Feb 21, 2024
1 parent def255f commit b852f49
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 15 deletions.
1 change: 0 additions & 1 deletion crates/controller/src/commands/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use de_combat::AttackEvent;
use de_construction::{AssemblyLine, ChangeDeliveryLocationEvent};
use de_core::{gamestate::GameState, objects::MovableSolid, schedule::InputSchedule};
use de_pathing::{PathQueryProps, PathTarget, UpdateEntityPathEvent};
use glam::Vec2;

use crate::selection::Selected;

Expand Down
5 changes: 1 addition & 4 deletions crates/controller/src/frustum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use std::f32::consts::PI;
use bevy::{
ecs::system::SystemParam,
prelude::*,
render::{
camera::Projection,
primitives::{Frustum, HalfSpace},
},
render::primitives::{Frustum, HalfSpace},
};
use de_core::screengeom::ScreenRect;

Expand Down
1 change: 0 additions & 1 deletion crates/controller/src/hud/minimap/draw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use bevy::{ecs::system::SystemParam, prelude::*};
use glam::UVec2;

use super::nodes::MinimapNode;

Expand Down
1 change: 0 additions & 1 deletion crates/controller/src/mouse/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use de_core::{gamestate::GameState, schedule::InputSchedule, state::AppState};
use de_index::SpatialQuery;
use de_signs::UpdateBarVisibilityEvent;
use de_terrain::TerrainCollider;
use glam::Vec3;

use crate::{
mouse::{MousePosition, MouseSet},
Expand Down
8 changes: 1 addition & 7 deletions crates/core/src/events.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
use std::marker::PhantomData;

use bevy::{
ecs::{
event::{Event, Events},
system::Resource,
},
prelude::*,
};
use bevy::{ecs::system::Resource, prelude::*};

use crate::gamestate::GameState;

Expand Down
2 changes: 1 addition & 1 deletion crates/uom/src/quantity.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
cmp::{Ord, Ordering},
cmp::Ordering,
ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign},
};

Expand Down

0 comments on commit b852f49

Please sign in to comment.