From 7660978ee5d842648e244e2972273264d94ca37b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 12 Jun 2022 17:45:52 +0200 Subject: Move `Arc` into `Frame` --- src/library/structure/doc.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/library/structure') 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); impl DocNode { /// Layout the document into a sequence of frames, one per page. - pub fn layout( - &self, - ctx: &mut Context, - styles: StyleChain, - ) -> TypResult>> { + pub fn layout(&self, ctx: &mut Context, styles: StyleChain) -> TypResult> { let mut frames = vec![]; for (page, map) in self.0.iter() { let number = 1 + frames.len(); -- cgit v1.2.3