Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where
cargo fmt --version
would not display version info
Fixes 5395 In PR 5239 we switched from using `structopt` to `clap`. It seems that the default behavior for `clap` is to override the `--version` flag, which prevented our custom version display code from running. The fix as outlined in clap-rs/clap#3405 was to set `#[clap(global_setting(AppSettings::NoAutoVersion))]` to prevent clap from setting its own default behavior for the `--version` flag.
- Loading branch information