diff --git a/src/app.rs b/src/app.rs index 3669aec..5056665 100644 --- a/src/app.rs +++ b/src/app.rs @@ -122,7 +122,7 @@ impl<'a> App<'a> { } - pub fn draw_initial(&mut self, f: &mut Frame) {} + pub fn draw_initial(&mut self, _f: &mut Frame) {} pub fn draw_guest_selection(&mut self, f: &mut Frame) { let chunks = Layout::default() diff --git a/src/creature.rs b/src/creature.rs index c62c8c0..7a5724c 100644 --- a/src/creature.rs +++ b/src/creature.rs @@ -69,6 +69,7 @@ impl Creature { } } + #[allow(dead_code)] pub fn set_agenda(&mut self, agenda: Agenda) { self.agenda = agenda; } diff --git a/src/events/tavern_built.rs b/src/events/tavern_built.rs index c4e6329..2130373 100644 --- a/src/events/tavern_built.rs +++ b/src/events/tavern_built.rs @@ -1,4 +1,3 @@ -use std::rc::Rc; use crate::{state::{GameState, Action}, site::{Structure, Tavern, Site}, entity::{Location, Entity}}; diff --git a/src/state.rs b/src/state.rs index 27c84ef..eabaa4f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,6 +1,5 @@ use std::collections::HashMap; -use std::rc::Rc; use rand::prelude::*; use crate::entity::{Location, EntityId}; @@ -35,6 +34,7 @@ pub trait Action { } impl Event { + #[allow(dead_code)] pub fn description(&self) -> String { format!("{}: {}", self.time, self.effect.description()) } diff --git a/src/world.rs b/src/world.rs index b0ad34f..58e7cde 100644 --- a/src/world.rs +++ b/src/world.rs @@ -1,6 +1,6 @@ -use std::{rc::Rc, collections::HashMap, fmt}; +use std::collections::HashMap; -use crate::{generators::TownNameGenerator, entity::{Location, Entity, EntityId}, site::Site}; +use crate::{entity::{Location, EntityId}, site::Site}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum Terrain {