diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-08 18:44:31 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-08 19:03:23 +0100 |
| commit | e6857f810e8868d95ebe78753568016b6dea12ca (patch) | |
| tree | 1b33a10470b9dff1d3c5e36ea4fd81fdf6b114cf /library/src/layout/align.rs | |
| parent | 11c7ceb29e762f6dd1d093d9fdb57e9612a92df0 (diff) | |
Copyable regions
Diffstat (limited to 'library/src/layout/align.rs')
| -rw-r--r-- | library/src/layout/align.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index 42bf86e1..d7f571cb 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -31,7 +31,7 @@ impl Layout for AlignNode { &self, vt: &mut Vt, styles: StyleChain, - regions: &Regions, + regions: Regions, ) -> SourceResult<Fragment> { // The child only needs to expand along an axis if there's no alignment. let mut pod = regions.clone(); @@ -44,7 +44,7 @@ impl Layout for AlignNode { } // Layout the child. - let mut fragment = self.child.layout(vt, styles.chain(&map), &pod)?; + let mut fragment = self.child.layout(vt, styles.chain(&map), pod)?; for (region, frame) in regions.iter().zip(&mut fragment) { // Align in the target size. The target size depends on whether we // should expand. |
