Merge pull request #253 from daboross/patch-1

Replace crate_version!() macro with simpler call; r=james-darkfox
This commit is contained in:
James McGlashan 2015-09-13 13:58:47 +10:00
commit f9efb54c1d

View file

@ -732,11 +732,7 @@ macro_rules! arg_enum {
#[macro_export]
macro_rules! crate_version {
() => {
format!("{}.{}.{}{}",
env!("CARGO_PKG_VERSION_MAJOR"),
env!("CARGO_PKG_VERSION_MINOR"),
env!("CARGO_PKG_VERSION_PATCH"),
option_env!("CARGO_PKG_VERSION_PRE").unwrap_or(""))
env!("CARGO_PKG_VERSION").to_owned()
}
}