summaryrefslogtreecommitdiff
path: root/src/layout/par.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/par.rs')
-rw-r--r--src/layout/par.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs
index 729c077f..e77bb4e7 100644
--- a/src/layout/par.rs
+++ b/src/layout/par.rs
@@ -18,12 +18,11 @@ pub struct Par {
pub children: Vec<LayoutNode>,
}
-#[async_trait(?Send)]
impl Layout for Par {
- async fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Vec<Layouted> {
+ fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Vec<Layouted> {
let mut layouter = ParLayouter::new(self, areas.clone());
for child in &self.children {
- for layouted in child.layout(ctx, &layouter.areas).await {
+ for layouted in child.layout(ctx, &layouter.areas) {
match layouted {
Layouted::Spacing(spacing) => layouter.spacing(spacing),
Layouted::Boxed(boxed, aligns) => layouter.boxed(boxed, aligns.cross),