0cb294f05c
fn_args_layout is now deprecated. This option was renamed to better communicate that it affects the layout of parameters in function signatures and not the layout of arguments in function calls. Because the `fn_args_layout` is a stable option the renamed option is also stable, however users who set `fn_args_layout` will get a warning message letting them know that the option has been renamed.
33 lines
634 B
Rust
33 lines
634 B
Rust
// rustfmt-fn_params_layout: Tall
|
|
// Function arguments density
|
|
|
|
trait Lorem {
|
|
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
|
|
|
|
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
|
|
// body
|
|
}
|
|
|
|
fn lorem(
|
|
ipsum: Ipsum,
|
|
dolor: Dolor,
|
|
sit: Sit,
|
|
amet: Amet,
|
|
consectetur: onsectetur,
|
|
adipiscing: Adipiscing,
|
|
elit: Elit,
|
|
);
|
|
|
|
fn lorem(
|
|
ipsum: Ipsum,
|
|
dolor: Dolor,
|
|
sit: Sit,
|
|
amet: Amet,
|
|
consectetur: onsectetur,
|
|
adipiscing: Adipiscing,
|
|
elit: Elit,
|
|
) {
|
|
// body
|
|
}
|
|
}
|