mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-07 13:25:45 +00:00
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 @@ configuration_option_enum! { Density:
|
||||
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 @@ impl Density {
|
||||
match self {
|
||||
Density::Compressed => ListTactic::Mixed,
|
||||
Density::Tall | Density::CompressedIfEmpty => ListTactic::HorizontalVertical,
|
||||
Density::Vertical => ListTactic::Vertical,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user