diff options
| author | Stéphane Campinas <stephane.campinas@gmail.com> | 2018-11-04 10:51:38 +0100 |
|---|---|---|
| committer | Stéphane Campinas <stephane.campinas@gmail.com> | 2018-11-04 23:41:21 +0100 |
| commit | 7132fe03a0dff64f871230d95f5006eb81354f60 (patch) | |
| tree | 2608d8827b27cca73e45afd45b4804c27a8a6b7e /src/expr.rs | |
| parent | b8a133d432fc5af0eee5bb30d05b1e07875aea72 (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.rs | 2 |
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, )? |
