Skip to content

Commit

Permalink
Fix Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Jul 24, 2023
1 parent 3d91771 commit 1e28674
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion crates/camera/src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use std::f32::consts::FRAC_PI_2;
use bevy::prelude::*;
use de_conf::{CameraConf, Configuration};
use de_core::{
schedule::{InputSchedule, Movement, PreMovement},
cleanup::DespawnOnGameExit,
events::ResendEventPlugin,
gamestate::GameState,
projection::ToAltitude,
schedule::{InputSchedule, Movement, PreMovement},
state::AppState,
};
use de_map::size::MapBounds;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/commands/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use bevy::prelude::*;
use de_behaviour::ChaseTargetEvent;
use de_combat::AttackEvent;
use de_construction::{AssemblyLine, ChangeDeliveryLocationEvent};
use de_core::{schedule::InputSchedule, gamestate::GameState, objects::MovableSolid};
use de_core::{gamestate::GameState, objects::MovableSolid, schedule::InputSchedule};
use de_pathing::{PathQueryProps, PathTarget, UpdateEntityPathEvent};
use glam::Vec2;

Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/commands/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ use de_camera::{
};
use de_conf::Configuration;
use de_core::{
schedule::InputSchedule,
gamestate::GameState,
gconfig::GameConfig,
objects::{BuildingType, ObjectType, Playable, PLAYER_MAX_BUILDINGS},
player::Player,
projection::ToFlat,
schedule::InputSchedule,
screengeom::ScreenRect,
};
use de_spawner::{DraftAllowed, ObjectCounter};
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/draft.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use bevy::prelude::*;
use de_core::{
schedule::InputSchedule,
cleanup::DespawnOnGameExit,
gamestate::GameState,
gconfig::GameConfig,
objects::{BuildingType, ObjectType},
schedule::InputSchedule,
state::AppState,
};
use de_spawner::{DraftAllowed, DraftBundle, SpawnBundle};
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/hud/actionbar.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use bevy::prelude::*;
use de_construction::EnqueueAssemblyEvent;
use de_core::{
schedule::InputSchedule,
cleanup::DespawnOnGameExit,
gamestate::GameState,
objects::{ObjectType, UnitType},
schedule::InputSchedule,
};
use de_gui::{ButtonCommands, GuiCommands, OuterStyle};
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/hud/menu.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::fmt;

use bevy::prelude::*;
use de_core::{schedule::InputSchedule, gamestate::GameState, state::AppState};
use de_core::{gamestate::GameState, schedule::InputSchedule, state::AppState};
use de_gui::{ButtonCommands, GuiCommands, OuterStyle};

use super::interaction::InteractionBlocker;
Expand Down
4 changes: 2 additions & 2 deletions crates/controller/src/hud/minimap/fill.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bevy::{ecs::system::SystemParam, prelude::*};
use de_core::{
schedule::PostMovement, gamestate::GameState, gconfig::GameConfig, objects::ObjectType,
player::Player, projection::ToFlat,
gamestate::GameState, gconfig::GameConfig, objects::ObjectType, player::Player,
projection::ToFlat, schedule::PostMovement,
};
use de_map::size::MapBounds;
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/hud/minimap/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use bevy::{
window::PrimaryWindow,
};
use de_camera::MoveFocusEvent;
use de_core::{schedule::InputSchedule, gamestate::GameState};
use de_core::{gamestate::GameState, schedule::InputSchedule};
use de_map::size::MapBounds;

use super::nodes::MinimapNode;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/hud/minimap/nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use bevy::{
prelude::*,
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
};
use de_core::{schedule::PreMovement, cleanup::DespawnOnGameExit, gamestate::GameState};
use de_core::{cleanup::DespawnOnGameExit, gamestate::GameState, schedule::PreMovement};
use de_map::size::MapBounds;

use crate::hud::{interaction::InteractionBlocker, HUD_COLOR};
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/mouse/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bevy::{
window::PrimaryWindow,
};
use de_core::{
schedule::InputSchedule, gamestate::GameState, screengeom::ScreenRect, state::AppState,
gamestate::GameState, schedule::InputSchedule, screengeom::ScreenRect, state::AppState,
};

use crate::hud::HudNodes;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/mouse/pointer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::prelude::*;
use de_core::{schedule::InputSchedule, gamestate::GameState, state::AppState};
use de_core::{gamestate::GameState, schedule::InputSchedule, state::AppState};
use de_index::SpatialQuery;
use de_signs::UpdateBarVisibilityEvent;
use de_terrain::TerrainCollider;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/selection/area.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use bevy::prelude::*;
use de_core::{
schedule::InputSchedule,
frustum,
gamestate::GameState,
objects::{ObjectType, Playable},
schedule::InputSchedule,
screengeom::ScreenRect,
};
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/controller/src/selection/bookkeeping.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use ahash::AHashSet;
use bevy::{ecs::system::SystemParam, prelude::*};
use de_core::{schedule::InputSchedule, gamestate::GameState};
use de_core::{gamestate::GameState, schedule::InputSchedule};
use de_signs::{UpdateBarVisibilityEvent, UpdateLineVisibilityEvent, UpdatePoleVisibilityEvent};
use de_terrain::MarkerVisibility;

Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use schedule::GameSchedulesPlugin;
use bevy::{app::PluginGroupBuilder, prelude::PluginGroup};
use cleanup::CleanupPlugin;
use gamestate::GameStateSetupPlugin;
use iyes_progress::prelude::*;
use schedule::GameSchedulesPlugin;
use state::AppState;
use visibility::VisibilityPlugin;

pub mod assets;
pub mod schedule;
pub mod cleanup;
mod errors;
pub mod events;
Expand All @@ -20,6 +19,7 @@ pub mod gresult;
pub mod objects;
pub mod player;
pub mod projection;
pub mod schedule;
pub mod screengeom;
pub mod state;
pub mod transition;
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

use bevy::prelude::*;
use de_core::{
schedule::PostMovement,
gamestate::GameState,
objects::{MovableSolid, ObjectType, StaticSolid},
schedule::PostMovement,
state::AppState,
};
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/altitude.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
objects::{MovableSolid, ObjectType},
schedule::{Movement, PreMovement},
state::AppState,
};
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/kinematics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use std::f32::consts::{FRAC_PI_4, PI, TAU};

use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
objects::MovableSolid,
projection::ToAltitude,
schedule::{Movement, PreMovement},
state::AppState,
};

Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use std::marker::PhantomData;

use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
objects::MovableSolid,
projection::ToAltitude,
schedule::{Movement, PreMovement},
state::AppState,
};
use de_map::size::MapBounds;
Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/obstacles.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
objects::{MovableSolid, ObjectType, StaticSolid},
projection::ToFlat,
schedule::{Movement, PreMovement},
};
use de_index::SpatialQuery;
use de_objects::SolidObjects;
Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/pathing.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
projection::ToFlat,
schedule::{Movement, PreMovement},
state::AppState,
};
use de_pathing::ScheduledPath;
Expand Down
2 changes: 1 addition & 1 deletion crates/movement/src/repulsion.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use bevy::prelude::*;
use de_core::{
schedule::{Movement, PreMovement},
gamestate::GameState,
objects::{MovableSolid, ObjectType, StaticSolid},
projection::ToFlat,
schedule::{Movement, PreMovement},
state::AppState,
};
use de_map::size::MapBounds;
Expand Down
2 changes: 1 addition & 1 deletion crates/multiplayer/src/game.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use bevy::prelude::*;
use de_core::{schedule::PreMovement, player::Player};
use de_core::{player::Player, schedule::PreMovement};
use de_net::{FromGame, FromServer, GameOpenError, JoinError, ToGame, ToServer};

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion crates/pathing/src/fplugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use bevy::{
tasks::{AsyncComputeTaskPool, Task},
};
use de_core::{
schedule::PreMovement,
gamestate::GameState,
objects::{ObjectType, StaticSolid},
schedule::PreMovement,
state::AppState,
};
use de_map::size::MapBounds;
Expand Down
2 changes: 1 addition & 1 deletion crates/pathing/src/pplugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use bevy::{
tasks::{AsyncComputeTaskPool, Task},
};
use de_core::{
schedule::{PostMovement, PreMovement},
gamestate::GameState,
objects::MovableSolid,
projection::ToFlat,
schedule::{PostMovement, PreMovement},
state::AppState,
};
use futures_lite::future;
Expand Down

0 comments on commit 1e28674

Please sign in to comment.