summaryrefslogtreecommitdiff
path: root/src/library/structure/doc.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-06-12 17:45:52 +0200
committerLaurenz <laurmaedje@gmail.com>2022-06-12 20:51:31 +0200
commit7660978ee5d842648e244e2972273264d94ca37b (patch)
tree74e1c8bc578afa616ddcd6c4c9e79c3c3d311d78 /src/library/structure/doc.rs
parent6e3b1a2c80428d581d00b9d65e1c45401df2e210 (diff)
Move `Arc` into `Frame`
Diffstat (limited to 'src/library/structure/doc.rs')
-rw-r--r--src/library/structure/doc.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/library/structure/doc.rs b/src/library/structure/doc.rs
index d3fc0b39..80472e24 100644
--- a/src/library/structure/doc.rs
+++ b/src/library/structure/doc.rs
@@ -7,11 +7,7 @@ pub struct DocNode(pub StyleVec<PageNode>);
impl DocNode {
/// Layout the document into a sequence of frames, one per page.
- pub fn layout(
- &self,
- ctx: &mut Context,
- styles: StyleChain,
- ) -> TypResult<Vec<Arc<Frame>>> {
+ pub fn layout(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Vec<Frame>> {
let mut frames = vec![];
for (page, map) in self.0.iter() {
let number = 1 + frames.len();