From faa41168a96c40e1e3c9134c2bf915e8cebf8833 Mon Sep 17 00:00:00 2001 From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Tue, 5 Jun 2018 07:35:51 +0800 Subject: [PATCH] format exceeded comments --- src/items.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index 2e776087aee..81e86b72196 100644 --- a/src/items.rs +++ b/src/items.rs @@ -696,7 +696,8 @@ pub fn format_impl( if is_impl_single_line(context, items, &result, &where_clause_str, item)? { result.push_str(&where_clause_str); if where_clause_str.contains('\n') || last_line_contains_single_line_comment(&result) { - // if the where_clause contains extra comments AND there is only one where clause predicate + // if the where_clause contains extra comments AND + // there is only one where clause predicate // recover the suppressed comma in single line where_clause formatting if generics.where_clause.predicates.len() == 1 { result.push_str(",");