Rename fn_args_layout to fn_args_density

This commit is contained in:
Nick Cameron 2015-09-02 08:56:37 +12:00
parent 6ca2756a82
commit f81485d9d6
5 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ pub fn override_value(&mut self, key: &str, val: &str) {
fn_brace_style: BraceStyle,
fn_return_indent: ReturnIndent,
fn_args_paren_newline: bool,
fn_args_layout: Density,
fn_args_density: Density,
fn_arg_indent: BlockIndentStyle,
where_density: Density, // Should we at least try to put the where clause on the same line as
// the rest of the function decl?
@ -122,7 +122,7 @@ fn default() -> Config {
fn_brace_style: BraceStyle::SameLineWhere,
fn_return_indent: ReturnIndent::WithArgs,
fn_args_paren_newline: true,
fn_args_layout: Density::Tall,
fn_args_density: Density::Tall,
fn_arg_indent: BlockIndentStyle::Visual,
where_density: Density::Tall,
where_indent: BlockIndentStyle::Tabbed,

View File

@ -363,7 +363,7 @@ fn rewrite_args(&self,
};
let fmt = ListFormatting {
tactic: self.config.fn_args_layout.to_list_tactic(),
tactic: self.config.fn_args_density.to_list_tactic(),
separator: ",",
trailing_separator: SeparatorTactic::Never,
indent: indent,

View File

@ -6,7 +6,7 @@ newline_style = "Unix"
fn_brace_style = "SameLineWhere"
fn_return_indent = "WithArgs"
fn_args_paren_newline = true
fn_args_layout = "Tall"
fn_args_density = "Tall"
fn_arg_indent = "Visual"
where_density = "Tall"
where_indent = "Tabbed"

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_layout: Compressed
// rustfmt-fn_args_density: Compressed
// Test some of the ways function signatures can be customised.
// Test compressed layout of args.

View File

@ -1,4 +1,4 @@
// rustfmt-fn_args_layout: Compressed
// rustfmt-fn_args_density: Compressed
// Test some of the ways function signatures can be customised.
// Test compressed layout of args.