Skip to content

Fix poor formatting of impls #2771

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

Merged
merged 6 commits into from
Jun 6, 2018
Merged

Fix poor formatting of impls #2771

merged 6 commits into from
Jun 6, 2018

Conversation

topecongiro
Copy link
Contributor

This PR fixes two minor formatting bugs w.r. impls:

  1. Currently rustfmt does not respect empty_item_single_line config option when formatting empty impls.
  2. Putting the where on the same line with the indented closing bracket, which makes the following where clauses hard to read (Poor formatting of impl header with long type and where bound #2746).

Closes #2746.

@nrc nrc merged commit da30d23 into rust-lang:master Jun 6, 2018
@nrc
Copy link
Member

nrc commented Jun 6, 2018

Thanks!

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.

Poor formatting of impl header with long type and where bound
2 participants