summaryrefslogtreecommitdiff
path: root/lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs')
-rw-r--r--lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs b/lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs
index 34da0a9..711005e 100644
--- a/lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs
+++ b/lib/core/libimagstore/src/file_abstraction/stdio/mapper/json.rs
@@ -85,7 +85,7 @@ impl Mapper for JsonMapper {
.chain_err(|| SEK::VersionError)
.and_then(|doc_vers| {
// safe because cargo does not compile if crate version is not valid
- let crate_version = ::semver::Version::parse(version!()).unwrap();
+ let crate_version = ::semver::Version::parse(env!("CARGO_PKG_VERSION")).unwrap();
debug!("Document version vs. own version: {doc_vers} > {crate_vers}",
doc_vers = doc_vers,
@@ -144,7 +144,7 @@ impl Mapper for JsonMapper {
}
let doc = OutDocument {
- version: String::from(version!()),
+ version: String::from(env!("CARGO_PKG_VERSION")),
store: store,
};