diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-12 17:10:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-12 17:10:01 +0200 |
| commit | 38157b0e0cbab22dc3f5fa5cc66d9b673a18a55b (patch) | |
| tree | 967dab30f04537b93126586dbb7f7b0d166290e4 /src/layout/spacing.rs | |
| parent | e94627721db89c3b08aa17f54d59d19a09f7816f (diff) | |
Synchronous layout 🪀
Diffstat (limited to 'src/layout/spacing.rs')
| -rw-r--r-- | src/layout/spacing.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/spacing.rs b/src/layout/spacing.rs index 427cb7b0..f64c7968 100644 --- a/src/layout/spacing.rs +++ b/src/layout/spacing.rs @@ -14,9 +14,8 @@ pub struct Spacing { pub softness: Softness, } -#[async_trait(?Send)] impl Layout for Spacing { - async fn layout(&self, _: &mut LayoutContext, _: &Areas) -> Vec<Layouted> { + fn layout(&self, _: &mut LayoutContext, _: &Areas) -> Vec<Layouted> { vec![Layouted::Spacing(self.amount)] } } |
