using cargo.toml version (#1813)
- Replaced `CFG_RELEASE` with `CARGO_PKG_VERSION` - No rerun on `CFG_RELEASE`
This commit is contained in:
1 parent
663296ae45
commit
8be9a7192b
2 files changed
+1
-6
No files matched your search
@@ -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",
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user