using cargo.toml version (#1813)

- Replaced `CFG_RELEASE` with `CARGO_PKG_VERSION`
- No rerun on `CFG_RELEASE`
This commit is contained in:
hem1t authored and GitHub committed 2024-01-11 13:50:23 -06:00
1 parent 663296ae45
commit 8be9a7192b
2 files changed
+1 -6

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ impl fmt::Display for VersionInfo {
/// Returns information about cargo's version.
pub const fn version() -> VersionInfo {
let version = match option_env!("CFG_RELEASE") {
let version = match option_env!("CARGO_PKG_VERSION") {
Some(x) => x,
None => "0.0.0",
};