Do not put where clause on a single with multi-lined type

This commit is contained in:
Seiichi Uchida 2018-06-06 10:46:49 +09:00
parent 8d01496c9e
commit 2e4376d29c

View file

@ -656,6 +656,7 @@ pub fn format_impl(
if !contains_comment(&snippet[open_pos..])
&& items.is_empty()
&& generics.where_clause.predicates.len() == 1
&& !result.contains('\n')
{
option.suppress_comma();
option.snuggle();