@@ -419,7 +419,7 @@ where
419419 1 // "["
420420 } ;
421421
422- let nested_shape = match context. config . array_layout ( ) {
422+ let nested_shape = match context. config . array_indent ( ) {
423423 IndentStyle :: Block => shape
424424 . block ( )
425425 . block_indent ( context. config . tab_spaces ( ) )
@@ -454,7 +454,7 @@ where
454454 . iter ( )
455455 . any ( |li| li. item . as_ref ( ) . map ( |s| s. len ( ) > 10 ) . unwrap_or ( false ) ) ;
456456
457- let mut tactic = match context. config . array_layout ( ) {
457+ let mut tactic = match context. config . array_indent ( ) {
458458 IndentStyle :: Block => {
459459 // FIXME wrong shape in one-line case
460460 match shape. width . checked_sub ( 2 * bracket_size) {
@@ -477,7 +477,7 @@ where
477477 DefinitiveListTactic :: Mixed
478478 } ,
479479 } ;
480- let ends_with_newline = tactic. ends_with_newline ( context. config . array_layout ( ) ) ;
480+ let ends_with_newline = tactic. ends_with_newline ( context. config . array_indent ( ) ) ;
481481 if context. config . array_horizontal_layout_threshold ( ) > 0
482482 && items. len ( ) > context. config . array_horizontal_layout_threshold ( )
483483 {
@@ -489,7 +489,7 @@ where
489489 separator : "," ,
490490 trailing_separator : if trailing_comma {
491491 SeparatorTactic :: Always
492- } else if context. inside_macro || context. config . array_layout ( ) == IndentStyle :: Visual {
492+ } else if context. inside_macro || context. config . array_indent ( ) == IndentStyle :: Visual {
493493 SeparatorTactic :: Never
494494 } else {
495495 SeparatorTactic :: Vertical
@@ -502,7 +502,7 @@ where
502502 } ;
503503 let list_str = write_list ( & items, & fmt) ?;
504504
505- let result = if context. config . array_layout ( ) == IndentStyle :: Visual
505+ let result = if context. config . array_indent ( ) == IndentStyle :: Visual
506506 || tactic == DefinitiveListTactic :: Horizontal
507507 {
508508 if context. config . spaces_within_square_brackets ( ) && !list_str. is_empty ( ) {
@@ -2033,7 +2033,7 @@ where
20332033 let used_width = extra_offset ( callee_str, shape) ;
20342034 let one_line_width = shape. width . checked_sub ( used_width + 2 * paren_overhead) ?;
20352035
2036- let nested_shape = shape_from_fn_call_style (
2036+ let nested_shape = shape_from_fn_call_indent (
20372037 context,
20382038 shape,
20392039 used_width + 2 * paren_overhead,
@@ -2379,7 +2379,7 @@ pub fn can_be_overflowed_expr(context: &RewriteContext, expr: &ast::Expr, args_l
23792379 match expr. node {
23802380 ast:: ExprKind :: Match ( ..) => {
23812381 ( context. use_block_indent ( ) && args_len == 1 )
2382- || ( context. config . fn_call_style ( ) == IndentStyle :: Visual && args_len > 1 )
2382+ || ( context. config . fn_call_indent ( ) == IndentStyle :: Visual && args_len > 1 )
23832383 }
23842384 ast:: ExprKind :: If ( ..) |
23852385 ast:: ExprKind :: IfLet ( ..) |
@@ -2391,7 +2391,7 @@ pub fn can_be_overflowed_expr(context: &RewriteContext, expr: &ast::Expr, args_l
23912391 }
23922392 ast:: ExprKind :: Block ( ..) | ast:: ExprKind :: Closure ( ..) => {
23932393 context. use_block_indent ( )
2394- || context. config . fn_call_style ( ) == IndentStyle :: Visual && args_len > 1
2394+ || context. config . fn_call_indent ( ) == IndentStyle :: Visual && args_len > 1
23952395 }
23962396 ast:: ExprKind :: Array ( ..) |
23972397 ast:: ExprKind :: Call ( ..) |
@@ -2640,7 +2640,7 @@ fn rewrite_struct_lit<'a>(
26402640 let fields_str = wrap_struct_field ( context, & fields_str, shape, v_shape, one_line_width) ;
26412641 Some ( format ! ( "{} {{{}}}" , path_str, fields_str) )
26422642
2643- // FIXME if context.config.struct_lit_style () == Visual, but we run out
2643+ // FIXME if context.config.struct_lit_indent () == Visual, but we run out
26442644 // of space, we should fall back to BlockIndent.
26452645}
26462646
@@ -2651,7 +2651,7 @@ pub fn wrap_struct_field(
26512651 nested_shape : Shape ,
26522652 one_line_width : usize ,
26532653) -> String {
2654- if context. config . struct_lit_style ( ) == IndentStyle :: Block
2654+ if context. config . struct_lit_indent ( ) == IndentStyle :: Block
26552655 && ( fields_str. contains ( '\n' )
26562656 || context. config . struct_lit_multiline_style ( ) == MultilineStyle :: ForceMulti
26572657 || fields_str. len ( ) > one_line_width)
@@ -2722,7 +2722,7 @@ pub fn rewrite_field(
27222722 }
27232723}
27242724
2725- fn shape_from_fn_call_style (
2725+ fn shape_from_fn_call_indent (
27262726 context : & RewriteContext ,
27272727 shape : Shape ,
27282728 overhead : usize ,
0 commit comments