diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:10:21 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-13 13:10:21 +0200 |
| commit | 7c0899b5373cdc4f1083a0a8515856207c431423 (patch) | |
| tree | ee1ecade4022f1fa3f666feb55097f7bdcae69ed /src/layout/stacked.rs | |
| parent | 5c04185892947969005ffcf6412d7190dafb3a79 (diff) | |
Run rustfmt 🚿
Diffstat (limited to 'src/layout/stacked.rs')
| -rw-r--r-- | src/layout/stacked.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs index 312681ac..5ca32970 100644 --- a/src/layout/stacked.rs +++ b/src/layout/stacked.rs @@ -1,6 +1,5 @@ use super::*; - /// Layouts boxes block-style. #[derive(Debug)] pub struct StackLayouter { @@ -29,10 +28,13 @@ impl StackLayouter { Alignment::Right => Size2D::with_x(space.usable().x), }, usable: space.usable(), - cursor: Size2D::new(match ctx.space.alignment { - Alignment::Left => space.padding.left, - Alignment::Right => space.dimensions.x - space.padding.right, - }, space.padding.top), + cursor: Size2D::new( + match ctx.space.alignment { + Alignment::Left => space.padding.left, + Alignment::Right => space.dimensions.x - space.padding.right, + }, + space.padding.top, + ), } } |
