block generics in traits

This commit is contained in:
Nick Cameron 2017-03-10 16:04:08 +13:00
parent a1d94e545c
commit 22be93780c

View File

@ -795,7 +795,7 @@ pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent)
where_density,
"{",
!has_body,
false,
trait_bound_str.is_empty() && last_line_width(&generics_str) == 1,
None));
// If the where clause cannot fit on the same line,
// put the where clause on a new line