-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename
--prepare-for
to --edition
, drop arg
This commit tweaks the UI of `cargo fix` for the edition. Previously you'd execute `cargo fix --prepare-for 2018`, but that's a lot of typing! Plus it's some manual data that Cargo can already infer. Instead, after this commit, you now type `cargo fix --edition`, and that's it! The idea is that this'll tell Cargo to fix code for the *next* edition, inferring whatever edition is in use and figuring out what to pass to rustc. Functionality-wise this should be the exact same as `--prepare-for 2018` though If others agree w/ this change I'll send a PR to the edition guide after this merges!
- Loading branch information
1 parent
63a08ee
commit b2b120e
Showing
3 changed files
with
97 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters