Skip to content

Commit db9d129

Browse files
committed
Add Vertical fn_args_density
This adds new option Vertical to fn_args_density, which formats the list vertically no matter what.
1 parent 3fddb98 commit db9d129

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ configuration_option_enum! { Density:
7171
Tall,
7272
// Try to compress if the body is empty.
7373
CompressedIfEmpty,
74+
// Place every item on a separate line.
75+
Vertical,
7476
}
7577

7678
configuration_option_enum! { TypeDensity:
@@ -85,6 +87,7 @@ impl Density {
8587
match self {
8688
Density::Compressed => ListTactic::Mixed,
8789
Density::Tall | Density::CompressedIfEmpty => ListTactic::HorizontalVertical,
90+
Density::Vertical => ListTactic::Vertical,
8891
}
8992
}
9093
}

0 commit comments

Comments
 (0)