diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
| commit | 181f756a9e8f7b664101058fe91e36b3858c2d02 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /src/layout/line.rs | |
| parent | 0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff) | |
Format everything with rustfmt! 💚
Diffstat (limited to 'src/layout/line.rs')
| -rw-r--r-- | src/layout/line.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/layout/line.rs b/src/layout/line.rs index 069a4e56..26b3d6a4 100644 --- a/src/layout/line.rs +++ b/src/layout/line.rs @@ -246,9 +246,7 @@ impl LineLayouter { for (offset, layout) in layouts { let x = match self.ctx.axes.primary.is_positive() { true => offset, - false => self.run.size.x - - offset - - layout.size.primary(self.ctx.axes), + false => self.run.size.x - offset - layout.size.primary(self.ctx.axes), }; let pos = Size::with_x(x); @@ -258,7 +256,7 @@ impl LineLayouter { self.stack.add(BoxLayout { size: self.run.size.specialized(self.ctx.axes), align: self.run.align.unwrap_or(LayoutAlign::new(Start, Start)), - elements + elements, }); self.run = LineRun::new(); |
