fix: use as_str to get rid of doesn't implement display

This commit is contained in:
Yusuf Bera Ertan 2022-09-03 16:31:52 +03:00
parent 2af2b34d84
commit e94acbec8b
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -30,12 +30,12 @@ lazy_static::lazy_static! {
pub static ref DISPLAY_VERSION: String = if GIT_TAG.is_empty() {
format!("{}-{}", VELOREN_VERSION_STAGE, *GIT_DATE)
} else {
format!("{}-{}", VELOREN_VERSION_STAGE, GIT_TAG)
format!("{}-{}", VELOREN_VERSION_STAGE, GIT_TAG.as_str())
};
pub static ref DISPLAY_VERSION_LONG: String = if GIT_TAG.is_empty() {
format!("{} ({})", DISPLAY_VERSION.as_str(), *GIT_HASH)
} else {
format!("{} ({})", DISPLAY_VERSION.as_str(), GIT_VERSION)
format!("{} ({})", DISPLAY_VERSION.as_str(), GIT_VERSION.as_str())
};
}