Add Vertical fn_args_density
This adds new option Vertical to fn_args_density, which formats the list vertically no matter what.
This commit is contained in:
parent
3fddb98149
commit
db9d129025
@ -71,6 +71,8 @@ pub enum $e {
|
||||
Tall,
|
||||
// Try to compress if the body is empty.
|
||||
CompressedIfEmpty,
|
||||
// Place every item on a separate line.
|
||||
Vertical,
|
||||
}
|
||||
|
||||
configuration_option_enum! { TypeDensity:
|
||||
@ -85,6 +87,7 @@ pub fn to_list_tactic(self) -> ListTactic {
|
||||
match self {
|
||||
Density::Compressed => ListTactic::Mixed,
|
||||
Density::Tall | Density::CompressedIfEmpty => ListTactic::HorizontalVertical,
|
||||
Density::Vertical => ListTactic::Vertical,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user