get elseware working with a newer version of rust #34

Merged
jake merged 13 commits from latestrust into master 2021-06-17 14:48:43 -04:00
Showing only changes of commit f9be2596cf - Show all commits

View File

@ -390,9 +390,11 @@ pub struct Block {
impl Default for Block { impl Default for Block {
fn default() -> Block { fn default() -> Block {
const SNONE: Option<room::RoomState> = None;
const NONE: Rooms = [SNONE; MAX_ROOMS];
Block { Block {
client_location: Box::new(ClientLocation::default()), client_location: Box::new(ClientLocation::default()),
rooms: Box::new([None; MAX_ROOMS]), rooms: Box::new(NONE),
} }
} }
} }