From 82fcf7069081af183d9ab6e3c848cb8c3846d67d Mon Sep 17 00:00:00 2001 From: mnmaita <47983254+mnmaita@users.noreply.github.com> Date: Mon, 8 Mar 2021 23:34:14 -0300 Subject: [PATCH 1/2] Adds rustfmt configs to wrap and limit comment width These options are unstable and depend on the following PR's: https://github.com/rust-lang/rustfmt/issues/3347 https://github.com/rust-lang/rustfmt/issues/3349 --- rustfmt.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rustfmt.toml b/rustfmt.toml index f9e4d8ed54098..44944ee26afac 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -6,3 +6,5 @@ newline_style = "Unix" #unstable_features = true #imports_granularity = "Crate" #reorder_impl_items = true +#wrap_comments = true +#comment_width = 100 From e68a31a9ca0e43e3b9b8b2d68f2ade04ca40fc67 Mon Sep 17 00:00:00 2001 From: mnmaita <47983254+mnmaita@users.noreply.github.com> Date: Tue, 9 Mar 2021 00:04:30 -0300 Subject: [PATCH 2/2] Adds normalize_comments setting Check https://github.com/rust-lang/rustfmt/issues/3350 to track stabilization of this option. --- rustfmt.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/rustfmt.toml b/rustfmt.toml index 44944ee26afac..39a9ccb508133 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -8,3 +8,4 @@ newline_style = "Unix" #reorder_impl_items = true #wrap_comments = true #comment_width = 100 +#normalize_comments = true