Formatting

master
Alex Bethel 2022-01-01 14:57:33 -06:00
parent 209c56ec50
commit b62df4c79d
2 changed files with 4 additions and 6 deletions

View File

@ -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")?;

View File

@ -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)
}
}