Skip to content

Commit f81485d

Browse files
committed
Rename fn_args_layout to fn_args_density
1 parent 6ca2756 commit f81485d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ create_config! {
8989
fn_brace_style: BraceStyle,
9090
fn_return_indent: ReturnIndent,
9191
fn_args_paren_newline: bool,
92-
fn_args_layout: Density,
92+
fn_args_density: Density,
9393
fn_arg_indent: BlockIndentStyle,
9494
where_density: Density, // Should we at least try to put the where clause on the same line as
9595
// the rest of the function decl?
@@ -122,7 +122,7 @@ impl Default for Config {
122122
fn_brace_style: BraceStyle::SameLineWhere,
123123
fn_return_indent: ReturnIndent::WithArgs,
124124
fn_args_paren_newline: true,
125-
fn_args_layout: Density::Tall,
125+
fn_args_density: Density::Tall,
126126
fn_arg_indent: BlockIndentStyle::Visual,
127127
where_density: Density::Tall,
128128
where_indent: BlockIndentStyle::Tabbed,

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl<'a> FmtVisitor<'a> {
363363
};
364364

365365
let fmt = ListFormatting {
366-
tactic: self.config.fn_args_layout.to_list_tactic(),
366+
tactic: self.config.fn_args_density.to_list_tactic(),
367367
separator: ",",
368368
trailing_separator: SeparatorTactic::Never,
369369
indent: indent,

tests/config/small_tabs.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ newline_style = "Unix"
66
fn_brace_style = "SameLineWhere"
77
fn_return_indent = "WithArgs"
88
fn_args_paren_newline = true
9-
fn_args_layout = "Tall"
9+
fn_args_density = "Tall"
1010
fn_arg_indent = "Visual"
1111
where_density = "Tall"
1212
where_indent = "Tabbed"

tests/source/fn-custom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-fn_args_layout: Compressed
1+
// rustfmt-fn_args_density: Compressed
22
// Test some of the ways function signatures can be customised.
33

44
// Test compressed layout of args.

tests/target/fn-custom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-fn_args_layout: Compressed
1+
// rustfmt-fn_args_density: Compressed
22
// Test some of the ways function signatures can be customised.
33

44
// Test compressed layout of args.

0 commit comments

Comments
 (0)