Put the where clause next to the closing bracket only when it is not indented

This commit is contained in:
Seiichi Uchida 2018-06-06 10:54:40 +09:00
parent 2e4376d29c
commit d51b99f5d7

View File

@ -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,
}
}