about summary refs log tree commit diff
path: root/src/tools/rustfmt/src/lists.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/src/lists.rs')
-rw-r--r--src/tools/rustfmt/src/lists.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools/rustfmt/src/lists.rs b/src/tools/rustfmt/src/lists.rs
index 3515dd17251..7aa0315f18c 100644
--- a/src/tools/rustfmt/src/lists.rs
+++ b/src/tools/rustfmt/src/lists.rs
@@ -448,10 +448,8 @@ where
                     true
                 } else if starts_with_newline(comment) {
                     false
-                } else if comment.trim().contains('\n') || comment.trim().len() > width {
-                    true
                 } else {
-                    false
+                    comment.trim().contains('\n') || comment.trim().len() > width
                 };
 
                 rewrite_comment(