From db9d1290254c5703d67fcf4f277b23641fb92d60 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Sun, 13 Mar 2016 22:57:03 +0200 Subject: [PATCH] Add Vertical fn_args_density This adds new option Vertical to fn_args_density, which formats the list vertically no matter what. --- src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.rs b/src/config.rs index 448ab3b8d514..32eb9af4b118 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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, } } }