Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace env!("CARGO_PKG_VERSION") with crate_version! macro (clap) for examples #121

Open
zrzka opened this issue Jul 5, 2018 · 0 comments
Assignees

Comments

@zrzka
Copy link
Contributor

zrzka commented Jul 5, 2018

Currently we use:

const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");

It can be replaced with crate_version!() macro. I totally forgot about this macro.

@zrzka zrzka self-assigned this Jul 5, 2018
zrzka added a commit that referenced this issue Jul 5, 2018
It’s just cosmetic change, but it makes the code shorter and cleaner.

Change-Type: patch
Connects-To: #121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant