diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-12 17:45:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-12 20:51:31 +0200 |
| commit | 7660978ee5d842648e244e2972273264d94ca37b (patch) | |
| tree | 74e1c8bc578afa616ddcd6c4c9e79c3c3d311d78 /src/model/content.rs | |
| parent | 6e3b1a2c80428d581d00b9d65e1c45401df2e210 (diff) | |
Move `Arc` into `Frame`
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index 3e27c02f..d2af4595 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -22,7 +22,7 @@ use crate::util::EcoString; /// Layout content into a collection of pages. /// /// Relayouts until all pinned locations are converged. -pub fn layout(ctx: &mut Context, content: &Content) -> TypResult<Vec<Arc<Frame>>> { +pub fn layout(ctx: &mut Context, content: &Content) -> TypResult<Vec<Frame>> { let mut pass = 0; let mut frames; @@ -46,7 +46,7 @@ pub fn layout(ctx: &mut Context, content: &Content) -> TypResult<Vec<Arc<Frame>> } /// Layout content into a collection of pages once. -fn layout_once(ctx: &mut Context, content: &Content) -> TypResult<Vec<Arc<Frame>>> { +fn layout_once(ctx: &mut Context, content: &Content) -> TypResult<Vec<Frame>> { let copy = ctx.config.styles.clone(); let styles = StyleChain::with_root(©); let scratch = Scratch::default(); @@ -263,7 +263,7 @@ impl Layout for Content { ctx: &mut Context, regions: &Regions, styles: StyleChain, - ) -> TypResult<Vec<Arc<Frame>>> { + ) -> TypResult<Vec<Frame>> { let scratch = Scratch::default(); let mut builder = Builder::new(ctx, &scratch, false); builder.accept(self, styles)?; |
