diff --git a/drops/src/lib.rs b/drops/src/lib.rs index c7c76d0..1a2cca7 100644 --- a/drops/src/lib.rs +++ b/drops/src/lib.rs @@ -139,6 +139,7 @@ pub struct StandardDropTable { } impl StandardDropTable { + #[allow(clippy::new_ret_no_self)] pub fn new(episode: Episode, difficulty: Difficulty, section_id: SectionID) -> Box { let monster_stats: HashMap = load_data_file(episode, difficulty, section_id, "monster_dar.toml"); diff --git a/src/bin/main.rs b/src/bin/main.rs index caebcc5..126cbb1 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -13,7 +13,7 @@ use entity::account::{NewUserAccountEntity, NewUserSettingsEntity}; use entity::character::NewCharacterEntity; use entity::item::{NewItemEntity, ItemDetail, InventoryItemEntity}; use entity::item; -use drops::{DropTable, StandardDropTable}; +use drops::StandardDropTable; fn setup_logger() { let colors = fern::colors::ColoredLevelConfig::new() diff --git a/src/bin/ship.rs b/src/bin/ship.rs index f5fff5d..7204925 100644 --- a/src/bin/ship.rs +++ b/src/bin/ship.rs @@ -2,7 +2,7 @@ use log::info; use entity::gateway::postgres::PostgresGateway; use elseware::ship::ship::ShipServerStateBuilder; use networking::interserver::AuthToken; -use drops::{DropTable, StandardDropTable}; +use drops::StandardDropTable; fn main() { let colors = fern::colors::ColoredLevelConfig::new()