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

Commit 493b1e0

Browse files
committed
Set rustfmt comment and line width to 100
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).
1 parent 5f3d497 commit 493b1e0

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)