Some panics to unreachable!, better error msging

This commit is contained in:
Llywelwyn 2023-09-23 00:12:05 +01:00
parent ae8f0d15a0
commit 23a42bab80
16 changed files with 19 additions and 19 deletions

View file

@ -42,7 +42,7 @@ impl RoomCornerRounder {
if let Some(rooms_builder) = &build_data.rooms {
rooms = rooms_builder.clone();
} else {
panic!("RoomCornerRounding requires a builder with rooms.");
unreachable!("RoomCornerRounding tried to run without any rooms.");
}
for room in rooms.iter() {