diff options
author | Luis Ferro <luis.ferro@eggplant.io> | 2019-11-12 09:44:34 +0100 |
---|---|---|
committer | Luis Ferro <luis.ferro@eggplant.io> | 2019-11-12 09:44:34 +0100 |
commit | 5216caa5e64b8be05ff859ba85f90f7a8fa1e6c1 (patch) | |
tree | 9735bd620d04ee24668c3e933ff9436f55658b82 | |
parent | 0db41de73fb65bdbe2e412f79704cff1874c7312 (diff) |
Fix diff and remove default macro
-rw-r--r-- | src/character.rs | 1 | ||||
-rw-r--r-- | src/world.rs | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/character.rs b/src/character.rs index 76f4414..3e6c4a7 100644 --- a/src/character.rs +++ b/src/character.rs @@ -2,7 +2,6 @@ use std::cmp; use crate::world::Point;
-#[derive(Default)]
pub struct Character {
pub name: String,
pub class: String,
diff --git a/src/world.rs b/src/world.rs index d55a9e5..05b82ed 100644 --- a/src/world.rs +++ b/src/world.rs @@ -193,13 +193,9 @@ pub trait GameWorld { fn generate(&mut self);
-<<<<<<< Updated upstream
fn to_tilegrid(&self) -> Result<TileGrid, String>;
-=======
- fn to_tilegrid(&self) -> TileGrid;
fn get_start_location(&self) -> Point;
->>>>>>> Stashed changes
}
fn hor_dist(point1: Point, point2: Point) -> f32 {
|