fmt: Use style_edition = 2021#3432
Conversation
|
Will this be merged ? Im kinda formatting a lot of things just by running I need to push to #3433 with correct formatting. |
Run `just fmt`, no other manual changes.
rustfmt is emitting: Warning: the version option is deprecated. Use style_edition instead. As suggested add a config option and set it to 2021.
|
Woops, wrong button |
@jaoleal quick history, this is the current state of affairs in
This means that sometimes there are a bunch of formatting issues on master, I personally deal with this by running the formatter and commiting the changes locally, then removing the patch before pushing PRs. Usually there are no major conflicts. If there are you can always push up a "run formatter" PR and not wait for the bot. Its sub-optimal I know but its the best we could come up with to keep everyone kind of happy. |
|
I'm not sure whats up with the labeler job, perhaps we just kick it again in a few hours. |
makes sense, thanks for explaining ! |
The formatter is emitting warnings: ``` cargo +$(cat ./nightly-version) fmt --all Warning: the `version` option is deprecated. Use `style_edition` instead. ``` Remove `version` and add `stlye_edtion` and set it to 2021. This is the same as we did in `rust-bitcoin` in 2024, gee wiz rust-bitcoin/rust-bitcoin#3432
7f6c8c3 rustfmt: Fix warnings (Tobin C. Harding) Pull request description: The formatter is emitting warnings: ``` cargo +$(cat ./nightly-version) fmt --all Warning: the `version` option is deprecated. Use `style_edition` instead. ``` Remove `version` and add `stlye_edtion` and set it to 2021. This is the same as we did in `rust-bitcoin` in 2024, gee wiz rust-bitcoin/rust-bitcoin#3432 ACKs for top commit: apoelstra: ACK 7f6c8c3; successfully ran local tests Tree-SHA512: 16f00b6ca7212c91ec1a64703ba06bc79fa36d58af88b3beeee3bc08213586e2a657a1190310b8a05ecfd8a109cd7d6595f86d90d4411dd03f8bb3c6e05cbbc9
rustfmtis emitting:Warning: the
versionoption is deprecated. Usestyle_editioninstead.As suggested add a config option and set it to 2021.