summaryrefslogtreecommitdiff
path: root/bin/core/imag-store
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-03-03 13:51:55 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-03-06 12:45:41 +0100
commit579c00b62af47b9a4580d7af1f19f488f6bf2ffc (patch)
tree89f9d6fbdc5d828e4feae99a9c17b55ccc19481d /bin/core/imag-store
parent8c1a9ffe6792ca3f14b2a481161fc2bf040c38c8 (diff)
downloadimag-579c00b62af47b9a4580d7af1f19f488f6bf2ffc.zip
imag-579c00b62af47b9a4580d7af1f19f488f6bf2ffc.tar.gz
Replace hard coded version strings with compiletime env
Diffstat (limited to 'bin/core/imag-store')
-rw-r--r--bin/core/imag-store/src/create.rs4
-rw-r--r--bin/core/imag-store/src/delete.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/core/imag-store/src/create.rs b/bin/core/imag-store/src/create.rs
index 492655f..f7365b8 100644
--- a/bin/core/imag-store/src/create.rs
+++ b/bin/core/imag-store/src/create.rs
@@ -174,7 +174,7 @@ mod tests {
make_mock_app! {
app "imag-store";
modulename mock;
- version "0.7.0";
+ version env!("CARGO_PKG_VERSION");
with help "imag-store mocking app";
}
use self::mock::generate_test_runtime;
@@ -193,7 +193,7 @@ mod tests {
let e = e.unwrap();
let version = e.get_header().read("imag.version").map(Option::unwrap).unwrap();
- assert_eq!(Value::String(String::from("0.7.0")), *version);
+ assert_eq!(Value::String(String::from(env!("CARGO_PKG_VERSION"))), *version);
}
}
diff --git a/bin/core/imag-store/src/delete.rs b/bin/core/imag-store/src/delete.rs
index d90fd03..f14f5bb 100644
--- a/bin/core/imag-store/src/delete.rs
+++ b/bin/core/imag-store/src/delete.rs
@@ -48,7 +48,7 @@ mod tests {
make_mock_app! {
app "imag-store";
modulename mock;
- version "0.7.0";
+ version env!("CARGO_PKG_VERSION");
with help "imag-store mocking app";
}
use self::mock::generate_test_runtime;