Do not put where clause on a single with multi-lined type
This commit is contained in:
parent
8d01496c9e
commit
2e4376d29c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue