diff --git a/src/game.rs b/src/game.rs index 94b129a..6bf40cc 100644 --- a/src/game.rs +++ b/src/game.rs @@ -109,11 +109,7 @@ impl Display for DungeonLevel { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { for y in 0..LEVEL_SIZE.1 { for x in 0..LEVEL_SIZE.0 { - write!( - f, - "{}", - self.render_tile(x, y) - )?; + write!(f, "{}", self.render_tile(x, y))?; } write!(f, "\n")?; diff --git a/src/rooms.rs b/src/rooms.rs index 031cf83..73d9284 100644 --- a/src/rooms.rs +++ b/src/rooms.rs @@ -138,7 +138,9 @@ impl RoomBounds { ); let new_room = Self { ul_corner, size }; - if v.iter().all(|room| !room.near(&new_room, ROOM_MIN_DISTANCE)) { + if v.iter() + .all(|room| !room.near(&new_room, ROOM_MIN_DISTANCE)) + { v.push(new_room) } }