Use env!("CARGO_PKG_VERSION") instead of hardcoding version when possible

See https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
This commit is contained in:
Bat
2018-10-06 18:33:10 +01:00
parent 7a64005ca9
commit 915b9bb0e5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ mod users;
fn main() {
let mut app = App::new("Plume CLI")
.bin_name("plm")
.version("0.2.0")
.version(env!("CARGO_PKG_VERSION"))
.about("Collection of tools to manage your Plume instance.")
.subcommand(instance::command())
.subcommand(users::command());