Browse Source

clippy

pull/135/head
jake 1 year ago
committed by andy
parent
commit
66c04b891e
  1. 1
      drops/src/lib.rs
  2. 2
      src/bin/main.rs
  3. 2
      src/bin/ship.rs

1
drops/src/lib.rs

@ -139,6 +139,7 @@ pub struct StandardDropTable {
} }
impl StandardDropTable { impl StandardDropTable {
#[allow(clippy::new_ret_no_self)]
pub fn new(episode: Episode, difficulty: Difficulty, section_id: SectionID) -> Box<dyn DropTable + Send + Sync> { pub fn new(episode: Episode, difficulty: Difficulty, section_id: SectionID) -> Box<dyn DropTable + Send + Sync> {
let monster_stats: HashMap<String, MonsterDropStats> = load_data_file(episode, difficulty, section_id, "monster_dar.toml"); let monster_stats: HashMap<String, MonsterDropStats> = load_data_file(episode, difficulty, section_id, "monster_dar.toml");

2
src/bin/main.rs

@ -13,7 +13,7 @@ use entity::account::{NewUserAccountEntity, NewUserSettingsEntity};
use entity::character::NewCharacterEntity; use entity::character::NewCharacterEntity;
use entity::item::{NewItemEntity, ItemDetail, InventoryItemEntity}; use entity::item::{NewItemEntity, ItemDetail, InventoryItemEntity};
use entity::item; use entity::item;
use drops::{DropTable, StandardDropTable};
use drops::StandardDropTable;
fn setup_logger() { fn setup_logger() {
let colors = fern::colors::ColoredLevelConfig::new() let colors = fern::colors::ColoredLevelConfig::new()

2
src/bin/ship.rs

@ -2,7 +2,7 @@ use log::info;
use entity::gateway::postgres::PostgresGateway; use entity::gateway::postgres::PostgresGateway;
use elseware::ship::ship::ShipServerStateBuilder; use elseware::ship::ship::ShipServerStateBuilder;
use networking::interserver::AuthToken; use networking::interserver::AuthToken;
use drops::{DropTable, StandardDropTable};
use drops::StandardDropTable;
fn main() { fn main() {
let colors = fern::colors::ColoredLevelConfig::new() let colors = fern::colors::ColoredLevelConfig::new()

Loading…
Cancel
Save