mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Do not put where clause on a single with multi-lined type
This commit is contained in:
parent
8d01496c9e
commit
2e4376d29c
@ -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 New Issue
Block a user