From c5a5f59fd7661c6391a7d70a86d61614a2abd912 Mon Sep 17 00:00:00 2001 From: Songtronix Date: Fri, 18 Oct 2019 17:39:57 +0200 Subject: [PATCH] fix(crash): singleplayer --- common/src/util/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/util/mod.rs b/common/src/util/mod.rs index 85c761eed6..7ccb111fd9 100644 --- a/common/src/util/mod.rs +++ b/common/src/util/mod.rs @@ -1,8 +1,8 @@ pub const GIT_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/githash")); lazy_static::lazy_static! { - pub static ref GIT_HASH: &'static str = include_str!(concat!(env!("OUT_DIR"), "/githash")).split(" ").nth(0).unwrap(); - pub static ref GIT_DATE: &'static str = include_str!(concat!(env!("OUT_DIR"), "/githash")).split(" ").nth(1).unwrap(); + pub static ref GIT_HASH: &'static str = include_str!(concat!(env!("OUT_DIR"), "/githash")).split("/").nth(0).expect("failed to retrieve git_hash!"); + pub static ref GIT_DATE: &'static str = include_str!(concat!(env!("OUT_DIR"), "/githash")).split("/").nth(1).expect("failed to retrieve git_date!"); } use vek::{Mat3, Rgb, Rgba, Vec3};