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

cargo-fmt version not displaying correctly #5395

Closed
ytmimi opened this issue Jun 21, 2022 · 1 comment · Fixed by #5396
Closed

cargo-fmt version not displaying correctly #5395

ytmimi opened this issue Jun 21, 2022 · 1 comment · Fixed by #5396
Labels
bug Panic, non-idempotency, invalid code, etc.

Comments

@ytmimi
Copy link
Contributor

ytmimi commented Jun 21, 2022

On the latest master (2c8b3be) the cargo-fmt binary isn't displaying it's version information properly.

This is what I get when running cargo-fmt

cargo run --bin cargo-fmt -- --version
cargo-fmt 

However we aren't seeing the same issue with rustfmt

cargo run --bin rustfmt -- --version
rustfmt 1.5.0-nightly (2c8b3bef 2022-06-21)
@ytmimi ytmimi added the bug Panic, non-idempotency, invalid code, etc. label Jun 21, 2022
@ytmimi
Copy link
Contributor Author

ytmimi commented Jun 21, 2022

I was able to track the issue down to #5239

clap-rs/clap#3405 seems like the exact same issue we're running into and setting
#[clap(global_setting(AppSettings::NoAutoVersion))] should be one way to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Panic, non-idempotency, invalid code, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant