Use crate_version! macro

This commit is contained in:
Matt Green 2016-10-13 19:57:21 -04:00
parent b6831c4d30
commit 392aea8ca3
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#[macro_use]
extern crate clap;
extern crate env_logger;
#[macro_use]
@ -20,7 +21,7 @@ use runner::Runner;
fn get_args<'a>() -> ArgMatches<'a> {
App::new("watchexec")
.version("0.11.0")
.version(crate_version!())
.about("Execute commands when watched files change")
.arg(Arg::with_name("path")
.help("Path to watch")