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

Commit a90ba03

Browse files
bors[bot]luckysori
andauthored
Merge #2572
2572: Set `rustfmt` max comment and line width to 100 r=luckysori a=luckysori 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). Co-authored-by: Lucas Soriano del Pino <[email protected]>
2 parents fb75a75 + fd1bf5d commit a90ba03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dprint.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"rustfmt": {
66
"imports_granularity": "item",
77
"wrap_comments": true,
8-
"comment_width": 120
8+
"comment_width": 100,
9+
"max_width": 100
910
},
1011
"sql": {
1112
"uppercase": true

0 commit comments

Comments
 (0)