Make rustfmt-bin's CARGO_PKG_VERSION envvar optional
This commit is contained in:
parent
8e6ee4a762
commit
6d294e6bcb
1 changed files with 1 additions and 1 deletions
|
|
@ -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"))
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue