From f9be2596cfbf673c5ce16d31a6f3a450f9f709be Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 15 Jun 2021 20:43:07 -0600 Subject: [PATCH] missed this const fix --- src/ship/ship.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ship/ship.rs b/src/ship/ship.rs index f8f08a6..b986648 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -390,9 +390,11 @@ pub struct Block { impl Default for Block { fn default() -> Block { + const SNONE: Option = None; + const NONE: Rooms = [SNONE; MAX_ROOMS]; Block { client_location: Box::new(ClientLocation::default()), - rooms: Box::new([None; MAX_ROOMS]), + rooms: Box::new(NONE), } } }