From c29d1b5cccf06f0dc7acca5b35c68f3eb50f43a1 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Tue, 27 May 2014 18:05:00 -0700 Subject: [PATCH] Derive Clone for ChildFrameTree instead of implementing it manually. --- src/components/main/constellation.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/main/constellation.rs b/src/components/main/constellation.rs index ab3ac8043dc..e487ece1246 100644 --- a/src/components/main/constellation.rs +++ b/src/components/main/constellation.rs @@ -58,6 +58,7 @@ struct FrameTree { pub children: RefCell>, } +#[deriving(Clone)] struct ChildFrameTree { frame_tree: Rc, /// Clipping rect representing the size and position, in page coordinates, of the visible @@ -65,15 +66,6 @@ struct ChildFrameTree { pub rect: Option>, } -impl Clone for ChildFrameTree { - fn clone(&self) -> ChildFrameTree { - ChildFrameTree { - frame_tree: self.frame_tree.clone(), - rect: self.rect.clone(), - } - } -} - pub struct SendableFrameTree { pub pipeline: CompositionPipeline, pub children: Vec,