parent
073cc3891f
commit
003786228d
@ -2418,7 +2418,8 @@ fn rewrite_fn_base(
|
||||
result.push_str(&where_clause_str);
|
||||
|
||||
force_new_line_for_brace |= last_line_contains_single_line_comment(&result);
|
||||
force_new_line_for_brace |= is_params_multi_lined && context.config.where_single_line();
|
||||
force_new_line_for_brace |=
|
||||
is_params_multi_lined && context.config.where_single_line() && !where_clause_str.is_empty();
|
||||
Some((result, force_new_line_for_brace))
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
// rustfmt-brace_style: SameLineWhere
|
||||
// rustfmt-where_single_line: true
|
||||
|
||||
fn lorem_multi_line_clauseless<Ipsum, Dolor, Sit, Amet>(
|
||||
a: Aaaaaaaaaaaaaaa,
|
||||
b: Bbbbbbbbbbbbbbbb,
|
||||
c: Ccccccccccccccccc,
|
||||
d: Ddddddddddddddddddddddddd,
|
||||
e: Eeeeeeeeeeeeeeeeeee,
|
||||
) -> T {
|
||||
// body
|
||||
}
|
||||
|
||||
fn lorem_multi_line_clauseless<Ipsum, Dolor, Sit, Amet>(
|
||||
a: Aaaaaaaaaaaaaaa,
|
||||
b: Bbbbbbbbbbbbbbbb,
|
||||
c: Ccccccccccccccccc,
|
||||
d: Ddddddddddddddddddddddddd,
|
||||
e: Eeeeeeeeeeeeeeeeeee,
|
||||
) {
|
||||
// body
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user