summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/flex.rs4
-rw-r--r--src/layout/stacked.rs4
-rw-r--r--src/layout/tree.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs
index b97b4239..da1e1d59 100644
--- a/src/layout/flex.rs
+++ b/src/layout/flex.rs
@@ -42,7 +42,7 @@ pub struct FlexContext {
}
macro_rules! reuse {
- ($ctx:expr, $flex_spacing:expr) => {
+ ($ctx:expr, $flex_spacing:expr) => (
FlexContext {
flex_spacing: $flex_spacing,
alignment: $ctx.alignment,
@@ -50,7 +50,7 @@ macro_rules! reuse {
followup_spaces: $ctx.followup_spaces,
shrink_to_fit: $ctx.shrink_to_fit,
}
- };
+ );
}
impl FlexContext {
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs
index 0097ce3e..7521967b 100644
--- a/src/layout/stacked.rs
+++ b/src/layout/stacked.rs
@@ -30,7 +30,7 @@ pub struct StackContext {
}
macro_rules! reuse {
- ($ctx:expr, $flow:expr) => {
+ ($ctx:expr, $flow:expr) => (
StackContext {
alignment: $ctx.alignment,
space: $ctx.space,
@@ -38,7 +38,7 @@ macro_rules! reuse {
shrink_to_fit: $ctx.shrink_to_fit,
flow: $flow
}
- };
+ );
}
impl StackContext {
diff --git a/src/layout/tree.rs b/src/layout/tree.rs
index dc98bfa8..131570df 100644
--- a/src/layout/tree.rs
+++ b/src/layout/tree.rs
@@ -104,7 +104,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
*space = space.usable_space();
}
- let commands = func.body.layout(ctx)?;
+ let commands = func.body.val.layout(ctx)?;
for command in commands {
match command {