Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed May 12, 2023
1 parent f17c015 commit d193208
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions map/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub enum MapError {
#[error("{0}")]
InvalidTileId(#[from] InvalidTileID),
#[error("Map needs at least one player")]
NoPlayer,
NoPlayer
}

impl Map {
Expand Down Expand Up @@ -187,7 +187,9 @@ impl Map {
let objects = self
.iter_object_layer()
.map(|(x, y, tile)| (x, y, MapTiles::MapObjectTile(tile.to_owned())));
let goals = self.iter_player_goals().map(|(x, y, tile)| (x, y, MapTiles::PlayerTile(tile)));
let goals = self
.iter_player_goals()
.map(|(x, y, tile)| (x, y, MapTiles::PlayerTile(tile)));
base.chain(objects).chain(goals)
}
}

0 comments on commit d193208

Please sign in to comment.