Skip to content

Conversation

@taiki-e
Copy link
Member

@taiki-e taiki-e commented Feb 13, 2021

This formats the following crates with rustfmt.

  • futures
  • futures-core
  • futures-executor
  • futures-io
  • futures-macro
  • futures-sink
  • futures-task
  • futures-test
  • examples

futures-util and futures-channel conflicts with many of other PRs and will not be formatted in this PR.
futures-executor also have some PR, but I plan to close them (I'll describe in detail when closing them).

@taiki-e
Copy link
Member Author

taiki-e commented Feb 13, 2021

By the way, one of the reasons for doing this is that it's painful to review a PR that contains a lot of irrelevant format changes like #2283

@taiki-e
Copy link
Member Author

taiki-e commented Feb 13, 2021

+850 −652

I don't like the rustfmt to inflate the code. Perhaps it makes sense to use use_small_heuristics = "Max" like rust-lang/rust, fuchsia, etc.

@taiki-e
Copy link
Member Author

taiki-e commented Feb 13, 2021

they don't really conflict with this PR (futures-channel)

Hmm, the reason futures-channel doesn't conflict is actually due to a bug where rustfmt can't format the code contained in the module inside the macro. I need to exclude futures-channel from the list.

@taiki-e
Copy link
Member Author

taiki-e commented Feb 13, 2021

This blocks a lot of other work I want to do, so I'll close this for now.

@taiki-e taiki-e closed this Feb 13, 2021
@taiki-e taiki-e deleted the fmt branch February 13, 2021 10:31
@taiki-e taiki-e mentioned this pull request Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant