diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-12-05 19:48:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-12-05 19:48:37 +0100 |
| commit | 72a9631b038d1a60e4e4a78e92cd69e6f8ce4316 (patch) | |
| tree | 17614efc2e21dd0b8caa24beaaaee7c40c150281 /src/layout/tree.rs | |
| parent | f72b1505bebf8d2fe1a60d386a3a3c3b67d4f903 (diff) | |
Move arg parser into `FuncArgs` and create (incomplete) consistent map ðŸ§
Diffstat (limited to 'src/layout/tree.rs')
| -rw-r--r-- | src/layout/tree.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/tree.rs b/src/layout/tree.rs index c9d40e93..4370ceab 100644 --- a/src/layout/tree.rs +++ b/src/layout/tree.rs @@ -1,5 +1,5 @@ -use super::*; use smallvec::smallvec; +use super::*; pub fn layout_tree(tree: &SyntaxTree, ctx: LayoutContext) -> LayoutResult<MultiLayout> { let mut layouter = TreeLayouter::new(ctx); @@ -31,7 +31,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> { fn layout(&mut self, tree: &SyntaxTree) -> LayoutResult<()> { for node in &tree.nodes { - match &node.val { + match &node.v { Node::Text(text) => self.layout_text(text)?, Node::Space => self.layout_space(), @@ -75,7 +75,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> { fn layout_func(&mut self, func: &FuncCall) -> LayoutResult<()> { let spaces = self.flex.remaining(); - let commands = func.body.val.layout(LayoutContext { + let commands = func.call.layout(LayoutContext { loader: self.ctx.loader, style: &self.style, top_level: false, |
