mirror of
https://github.com/clap-rs/clap
synced 2025-01-18 23:53:54 +00:00
Merge pull request #253 from daboross/patch-1
Replace crate_version!() macro with simpler call; r=james-darkfox
This commit is contained in:
commit
f9efb54c1d
1 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue