From d51b99f5d7129767bdc6bbbba78b155df83eb3cd Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Wed, 6 Jun 2018 10:54:40 +0900 Subject: [PATCH] Put the where clause next to the closing bracket only when it is not indented --- src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items.rs b/src/items.rs index 321a74df7cc1..a45d41842dec 100644 --- a/src/items.rs +++ b/src/items.rs @@ -2143,7 +2143,7 @@ impl WhereClauseOption { pub fn snuggled(current: &str) -> WhereClauseOption { WhereClauseOption { suppress_comma: false, - snuggle: trimmed_last_line_width(current) == 1, + snuggle: last_line_width(current) == 1, compress_where: false, } }