summaryrefslogtreecommitdiff
path: root/library/src/structure/doc.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-25 10:36:31 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-25 12:16:13 +0100
commitbf5edbbbbb75120d065d1c9587ccfa4eed4fdca1 (patch)
tree956af910ab27a8cec0db83171cd3f0b6d0570a60 /library/src/structure/doc.rs
parent96f72eee6c6b595164c7a0576c407d7a590661db (diff)
Tidy up
Diffstat (limited to 'library/src/structure/doc.rs')
-rw-r--r--library/src/structure/doc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/structure/doc.rs b/library/src/structure/doc.rs
index 42ad628e..e471a852 100644
--- a/library/src/structure/doc.rs
+++ b/library/src/structure/doc.rs
@@ -18,7 +18,7 @@ impl LayoutRoot for DocNode {
let mut frames = vec![];
for (page, map) in self.0.iter() {
let number = 1 + frames.len();
- frames.extend(page.layout(world, number, map.chain(&styles))?);
+ frames.extend(page.layout(world, number, styles.chain(map))?);
}
Ok(frames)
}