We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 818ff7a commit d613f75Copy full SHA for d613f75
src/expr.rs
@@ -464,8 +464,16 @@ where
464
1 // "["
465
};
466
467
- let nested_shape = match context.config.array_layout() {
468
- IndentStyle::Block => shape.block().block_indent(context.config.tab_spaces()),
+ let mut nested_shape = match context.config.array_layout() {
+ IndentStyle::Block => {
469
+ try_opt!(
470
+ shape
471
+ .block()
472
+ .block_indent(context.config.tab_spaces())
473
+ .with_max_width(context.config)
474
+ .sub_width(1)
475
+ )
476
+ }
477
IndentStyle::Visual => {
478
try_opt!(
479
shape
0 commit comments