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/library/layout/align.rs | |
| parent | 6e3b1a2c80428d581d00b9d65e1c45401df2e210 (diff) | |
Move `Arc` into `Frame`
Diffstat (limited to 'src/library/layout/align.rs')
| -rw-r--r-- | src/library/layout/align.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/layout/align.rs b/src/library/layout/align.rs index c5adcf9f..e7a27c04 100644 --- a/src/library/layout/align.rs +++ b/src/library/layout/align.rs @@ -31,7 +31,7 @@ impl Layout for AlignNode { ctx: &mut Context, regions: &Regions, styles: StyleChain, - ) -> TypResult<Vec<Arc<Frame>>> { + ) -> TypResult<Vec<Frame>> { // The child only needs to expand along an axis if there's no alignment. let mut pod = regions.clone(); pod.expand &= self.aligns.map_is_none(); @@ -53,7 +53,7 @@ impl Layout for AlignNode { .map(|align| align.resolve(styles)) .unwrap_or(Spec::new(Align::Left, Align::Top)); - Arc::make_mut(frame).resize(target, aligns); + frame.resize(target, aligns); } Ok(frames) |
