From 493b1e0f004f5dd698043f17b9fcd06a288eb2ac Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Thu, 28 Jul 2022 17:04:42 +1000 Subject: [PATCH] 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: https://github.com/rust-lang/rustfmt/issues/3349#issuecomment-622522913. --- dprint.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dprint.json b/dprint.json index b45b963598..841fe80a90 100644 --- a/dprint.json +++ b/dprint.json @@ -5,7 +5,8 @@ "rustfmt": { "imports_granularity": "item", "wrap_comments": true, - "comment_width": 120 + "comment_width": 100, + "max_width": 100 }, "sql": { "uppercase": true