about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2018-08-31 15:50:41 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2018-08-31 15:50:41 +0300
commit6a029974de78f3cc918c52047cbd4c0ec5cbcfe0 (patch)
treea444d293e6f7ea049ba33518cd15cba326342549 /src/expr.rs
parent098a5391f030c94c83e0ccd16d0706fbf1544fbb (diff)
Fix shape in rewrite_tuple_in_visual_indent_style
Diffstat (limited to 'src/expr.rs')
-rw-r--r--src/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs
index 74639c6ef63..11d53eb7074 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1753,7 +1753,7 @@ where
         Separator::Comma,
         nested_shape.width,
     );
-    let fmt = ListFormatting::new(shape, context.config)
+    let fmt = ListFormatting::new(nested_shape, context.config)
         .tactic(tactic)
         .ends_with_newline(false);
     let list_str = write_list(&item_vec, &fmt)?;