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:
Ari Koivula 2016-03-13 22:57:03 +02:00
parent 3fddb98149
commit db9d129025

View File

@ -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,
}
}
}