From 20b1a38414101f842a6d9201133a5aaaa45a7cec Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 31 Jan 2022 16:06:44 +0100 Subject: Switch from `Rc` to `Arc` --- src/library/stack.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/library/stack.rs') diff --git a/src/library/stack.rs b/src/library/stack.rs index 8c8a9f60..14b268c2 100644 --- a/src/library/stack.rs +++ b/src/library/stack.rs @@ -31,7 +31,7 @@ impl Layout for StackNode { ctx: &mut LayoutContext, regions: &Regions, styles: StyleChain, - ) -> Vec>> { + ) -> Vec>> { StackLayouter::new(self, regions.clone(), styles).layout(ctx) } } @@ -90,7 +90,7 @@ struct StackLayouter<'a> { /// Spacing and layouted nodes. items: Vec, /// Finished frames for previous regions. - finished: Vec>>, + finished: Vec>>, } /// A prepared item in a stack layout. @@ -100,7 +100,7 @@ enum StackItem { /// Fractional spacing between other items. Fractional(Fractional), /// A layouted child node. - Frame(Rc, Align), + Frame(Arc, Align), } impl<'a> StackLayouter<'a> { @@ -131,7 +131,7 @@ impl<'a> StackLayouter<'a> { } /// Layout all children. - fn layout(mut self, ctx: &mut LayoutContext) -> Vec>> { + fn layout(mut self, ctx: &mut LayoutContext) -> Vec>> { // Spacing to insert before the next node. let mut deferred = None; -- cgit v1.2.3