From d193208f31aa9d0b4dce51f6a41ff8e123cf1e3f Mon Sep 17 00:00:00 2001 From: luckyturtledev Date: Fri, 12 May 2023 17:40:11 +0200 Subject: [PATCH] fmt --- map/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/map/src/lib.rs b/map/src/lib.rs index b78ef1f..502219e 100644 --- a/map/src/lib.rs +++ b/map/src/lib.rs @@ -42,7 +42,7 @@ pub enum MapError { #[error("{0}")] InvalidTileId(#[from] InvalidTileID), #[error("Map needs at least one player")] - NoPlayer, + NoPlayer } impl Map { @@ -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) } }