summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/tree.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/tree.rs b/src/layout/tree.rs
index a0cb1434..dc98bfa8 100644
--- a/src/layout/tree.rs
+++ b/src/layout/tree.rs
@@ -38,7 +38,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
/// Layout the tree into a box.
fn layout(&mut self, tree: &SyntaxTree) -> LayoutResult<()> {
for node in &tree.nodes {
- match node {
+ match &node.val {
Node::Text(text) => {
let layout = self.layout_text(text)?;
self.flex.add(layout);