Merge pull request #2386 from acmcarther/master

Make rustfmt-bin's CARGO_PKG_VERSION envvar optional
This commit is contained in:
Seiichi Uchida 2018-01-26 12:35:52 +09:00 committed by GitHub
commit f925c581fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@ fn print_usage_to_stdout(opts: &Options, reason: &str) {
fn print_version() {
println!(
"{}-nightly{}",
env!("CARGO_PKG_VERSION"),
option_env!("CARGO_PKG_VERSION").unwrap_or("unknown"),
include_str!(concat!(env!("OUT_DIR"), "/commit-info.txt"))
)
}