summaryrefslogtreecommitdiff
path: root/src/layout/tree.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-04 19:34:29 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-04 19:35:28 +0100
commit9fb31defd037a90bf8f9e38fa33acae23a70b269 (patch)
treee0fd887792a59cbb3262a5d3157d0c786df56d60 /src/layout/tree.rs
parentace57c34206a13b4bc3885b944cc51e274f30b0f (diff)
Expand functionality of function! macro 🛰
Diffstat (limited to 'src/layout/tree.rs')
-rw-r--r--src/layout/tree.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/tree.rs b/src/layout/tree.rs
index efa0c7b7..5fe3b6fd 100644
--- a/src/layout/tree.rs
+++ b/src/layout/tree.rs
@@ -99,8 +99,8 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
Add(layout) => self.flex.add(layout),
AddMultiple(layouts) => self.flex.add_multiple(layouts),
AddSpacing(space, kind, axis) => match axis {
- AxisKind::Primary => self.flex.add_primary_space(space, kind),
- AxisKind::Secondary => self.flex.add_secondary_space(space, kind)?,
+ GenericAxisKind::Primary => self.flex.add_primary_space(space, kind),
+ GenericAxisKind::Secondary => self.flex.add_secondary_space(space, kind)?,
}
FinishLine => self.flex.add_break(),
@@ -111,7 +111,7 @@ impl<'a, 'p> TreeLayouter<'a, 'p> {
SetTextStyle(style) => self.style.text = style,
SetPageStyle(style) => {
if !self.ctx.top_level {
- lerr!("page style cannot only be altered in the top-level context");
+ lr!("page style cannot only be altered in the top-level context");
}
self.style.page = style;