Skip to content

Commit

Permalink
unused imports removed
Browse files Browse the repository at this point in the history
  • Loading branch information
thatchinkumar2005 committed Dec 24, 2024
1 parent ef158da commit 883f982
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/api/attack/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::error::DieselError;
use crate::models::{
Artifact, AttackerType, AvailableBlocks, BlockCategory, BlockType, BuildingType, DefenderType, EmpType, Game, LevelsFixture, MapLayout, MapSpaces, MineType, NewAttackerPath, NewGame, Prop, User
};
use crate::schema::game::defend_id;
use crate::schema::{prop, user};
use crate::util::function;
use crate::validator::util::Coords;
Expand Down Expand Up @@ -565,7 +564,7 @@ pub fn get_defenders(
map_id: i32,
user_id: i32,
) -> Result<Vec<DefenderDetails>> {
use crate::schema::{available_blocks, block_type, building_type, defender_type, map_spaces};
use crate::schema::{available_blocks, block_type, defender_type, map_spaces};
// let result: Vec<(
// MapSpaces,
// (BlockType, AvailableBlocks, BuildingType, DefenderType),
Expand Down
3 changes: 1 addition & 2 deletions src/api/defense/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ use crate::api::util::{HistoryboardEntry, HistoryboardResponse};
use crate::api::{self};
use crate::constants::{BANK_BUILDING_NAME, INITIAL_ARTIFACTS, INITIAL_RATING, ROAD_ID};
use crate::models::*;
use crate::schema::attacker_type::{cost, level};
use crate::schema::prop;
use crate::util::function;
use crate::{api::util::GameHistoryResponse, error::DieselError};
use anyhow::{Ok, Result};
use diesel::dsl::{exists, min};
use diesel::dsl::exists;
use diesel::{prelude::*, select};
use rand::Rng;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion src/api/defense/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use super::{
util::{DefenderTypeResponse, MineTypeResponse},
MapSpacesEntry,
};
use crate::{api::error::BaseInvalidError, constants::*, models::*, schema::building_type};
use crate::{api::error::BaseInvalidError, constants::*, models::*};
use petgraph::{self, algo::tarjan_scc, prelude::*, Graph};
use std::collections::{HashMap, HashSet};

Expand Down
1 change: 0 additions & 1 deletion src/api/inventory/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::models::{
AttackerType, BlockCategory, BlockType, BuildingType, DefenderType, EmpType, ItemCategory,
MineType, Prop,
};
use crate::schema::available_blocks::block_type_id;
use crate::schema::{
artifact, attacker_type, available_blocks, block_type, building_type, defender_type, emp_type,
mine_type, prop,
Expand Down

0 comments on commit 883f982

Please sign in to comment.