about summary refs log tree commit diff
path: root/src/expr.rs
diff options
context:
space:
mode:
authorStéphane Campinas <stephane.campinas@gmail.com>2018-11-04 10:51:38 +0100
committerStéphane Campinas <stephane.campinas@gmail.com>2018-11-04 23:41:21 +0100
commit7132fe03a0dff64f871230d95f5006eb81354f60 (patch)
tree2608d8827b27cca73e45afd45b4804c27a8a6b7e /src/expr.rs
parentb8a133d432fc5af0eee5bb30d05b1e07875aea72 (diff)
fix alignment of a struct's fields with the visual style
- rewrite_with_alignment was called from the expr module with the wrong
  shape that missed the extra offset needed for the visual style
- rewrite_with_alignment was indenting the given shape although that
  should have been the caller's responsability
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 fbbc592e547..08b9ad3079c 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1565,7 +1565,7 @@ fn rewrite_struct_lit<'a>(
         rewrite_with_alignment(
             fields,
             context,
-            shape,
+            v_shape,
             mk_sp(body_lo, span.hi()),
             one_line_width,
         )?