summaryrefslogtreecommitdiff
path: root/library/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-22 20:52:58 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-22 21:09:20 +0100
commitc2749f761591b462ceeccf4a42b9ac75d8addf85 (patch)
treea2c51175fa996f5e59666da762b2e7d9e25b43e3 /library/src/lib.rs
parentea2a1525f0fc461ec9a5dc1839aec9b66c4e1ecc (diff)
More sensible `LayoutRoot`
Diffstat (limited to 'library/src/lib.rs')
-rw-r--r--library/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/lib.rs b/library/src/lib.rs
index 41c841f2..7a292c6d 100644
--- a/library/src/lib.rs
+++ b/library/src/lib.rs
@@ -154,7 +154,7 @@ pub fn styles() -> StyleMap {
/// Construct the standard lang item mapping.
pub fn items() -> LangItems {
LangItems {
- root: |world, content| content.layout_root(world),
+ root: |content, world, styles| content.layout_root(world, styles),
em: |styles| styles.get(text::TextNode::SIZE),
dir: |styles| styles.get(text::TextNode::DIR),
space: || text::SpaceNode.pack(),