diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-31 16:06:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-31 16:47:00 +0100 |
| commit | 20b1a38414101f842a6d9201133a5aaaa45a7cec (patch) | |
| tree | 2365453d4dfdebfa11d618baad1a36c65b62d7c7 /src/library/align.rs | |
| parent | fa57d86ed981373b66804972147bf59cab920e6b (diff) | |
Switch from `Rc` to `Arc`
Diffstat (limited to 'src/library/align.rs')
| -rw-r--r-- | src/library/align.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/align.rs b/src/library/align.rs index 8eee116e..ecf50cc4 100644 --- a/src/library/align.rs +++ b/src/library/align.rs @@ -27,7 +27,7 @@ impl Layout for AlignNode { ctx: &mut LayoutContext, regions: &Regions, styles: StyleChain, - ) -> Vec<Constrained<Rc<Frame>>> { + ) -> Vec<Constrained<Arc<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(); @@ -49,7 +49,7 @@ impl Layout for AlignNode { let target = regions.expand.select(current, frame.size); let default = Spec::new(Align::Left, Align::Top); let aligns = self.aligns.unwrap_or(default); - Rc::make_mut(frame).resize(target, aligns); + Arc::make_mut(frame).resize(target, aligns); // Set constraints. cts.expand = regions.expand; |
