diff options
| author | Nick Cameron <nrc@ncameron.org> | 2018-10-15 08:07:59 +1200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-15 08:07:59 +1200 |
| commit | a6ef302236dd353bd737d1196d7dc581ffc703a0 (patch) | |
| tree | 2f16f39939a92bff5a0b4a99d8347e6788dacab3 /src/expr.rs | |
| parent | 2f8c1fea72dee881b602d850422568b1f8c14d12 (diff) | |
| parent | 5f5d04283ce68b514a13ae5c41ba3961549ab46f (diff) | |
Merge pull request #3100 from topecongiro/issue-3092
Fix poor formatting of empty trait with generic bounds
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr.rs b/src/expr.rs index 7a6a1473060..8a5b3de7a14 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -1937,7 +1937,9 @@ fn shape_from_rhs_tactic( rhs_tactic: RhsTactics, ) -> Option<Shape> { match rhs_tactic { - RhsTactics::ForceNextLineWithoutIndent => Some(shape.with_max_width(context.config)), + RhsTactics::ForceNextLineWithoutIndent => shape + .with_max_width(context.config) + .sub_width(shape.indent.width()), RhsTactics::Default => { Shape::indented(shape.indent.block_indent(context.config), context.config) .sub_width(shape.rhs_overhead(context.config)) |
