mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 19:20:44 +01:00
refactor: remove uneed imports
This commit is contained in:
@@ -10,9 +10,8 @@ use checkers::{
|
|||||||
network_identity::NetworkIdentity,
|
network_identity::NetworkIdentity,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use log::{debug, error, info, warn};
|
use log::{error, info, warn};
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use uuid::Uuid;
|
|
||||||
|
|
||||||
const QUIT_COMMAND: &str = "/quit";
|
const QUIT_COMMAND: &str = "/quit";
|
||||||
const HELP_COMMAND: &str = "/help";
|
const HELP_COMMAND: &str = "/help";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use std::ops::Index;
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::logic::board::{board::Board, field::Field, pawn::Pawn};
|
use crate::logic::board::{board::Board, field::Field};
|
||||||
|
|
||||||
/// View of the board, without any methods. Meant for sending over network
|
/// View of the board, without any methods. Meant for sending over network
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq, Clone)]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
use core::fmt;
|
use core::fmt;
|
||||||
use std::ops::Sub;
|
use std::ops::Sub;
|
||||||
|
|
||||||
use log::{debug, trace};
|
use log::trace;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::logic::math::vector::Vector2D;
|
use crate::logic::math::vector::Vector2D;
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ use uuid::Uuid;
|
|||||||
use crate::{
|
use crate::{
|
||||||
logic::{
|
logic::{
|
||||||
board::{
|
board::{
|
||||||
board::Board,
|
|
||||||
board_view::BoardView,
|
board_view::BoardView,
|
||||||
pawn::{CapturePath, MovePath},
|
pawn::{CapturePath, MovePath},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ use uuid::Uuid;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
logic::{
|
logic::{
|
||||||
board::{board_view::BoardView, pawn::CapturePath},
|
board::pawn::CapturePath,
|
||||||
game_master::{GameMaster, GameResult},
|
game_master::{GameMaster, GameResult},
|
||||||
math::position::Position,
|
math::position::Position,
|
||||||
},
|
},
|
||||||
@@ -21,7 +21,7 @@ use crate::{
|
|||||||
ClientMessage::{self},
|
ClientMessage::{self},
|
||||||
Message, ServerMessage,
|
Message, ServerMessage,
|
||||||
},
|
},
|
||||||
network_identity::{NetworkIdentity, NetworkServerIdentity},
|
network_identity::NetworkServerIdentity,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user