diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-12 17:29:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-12 17:29:01 +0200 |
| commit | 5243878d810d4817c81acc9ae346d46757fcf602 (patch) | |
| tree | 4a8be00ab7262030a6ba8c6638b969a03ac1d9b5 /src/layout/spacing.rs | |
| parent | 38157b0e0cbab22dc3f5fa5cc66d9b673a18a55b (diff) | |
Less vecs in layouting ⚡
Diffstat (limited to 'src/layout/spacing.rs')
| -rw-r--r-- | src/layout/spacing.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/spacing.rs b/src/layout/spacing.rs index f64c7968..c44f92e4 100644 --- a/src/layout/spacing.rs +++ b/src/layout/spacing.rs @@ -15,8 +15,8 @@ pub struct Spacing { } impl Layout for Spacing { - fn layout(&self, _: &mut LayoutContext, _: &Areas) -> Vec<Layouted> { - vec![Layouted::Spacing(self.amount)] + fn layout(&self, _: &mut LayoutContext, _: &Areas) -> Layouted { + Layouted::Spacing(self.amount) } } |
