Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

Set rustfmt max comment and line width to 100 #2572

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

luckysori
Copy link
Contributor

It was a bit weird that the comment_width was configured to be longer than the max_width which sets the maximum width of each line.

I choose to explicitly set max_width to its default value of 100 for clarity.

The reason why we don't see any other changes to the diff should be obvious: setting comment_width to more than max_width was useless!

Inspired by: rust-lang/rustfmt#3349 (comment).

It was a bit weird that the `comment_width` was configured to be
_longer_ than the `max_width` which sets the maximum width of each
line.

I choose to explictly set `max_width` to its default value of 100 for
clarity.

The reason why we don't see any other changes to the diff should be
obvious: setting `comment_width` to more than `max_width` was useless!

Inspired by:
rust-lang/rustfmt#3349 (comment).
@luckysori luckysori self-assigned this Jul 28, 2022
@luckysori
Copy link
Contributor Author

bors r+

@bors bors bot merged commit a90ba03 into master Jul 28, 2022
@bors bors bot deleted the rustftm-comment-width branch July 28, 2022 11:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants