From ae79f5351d5516ebe398ac4b4d52eb7865a20555 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 22 Jul 2013 15:42:07 -0700 Subject: [PATCH] Derive Clone for FlowContext --- src/components/main/layout/flow.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs index 38fd16974b3..adeea36928c 100644 --- a/src/components/main/layout/flow.rs +++ b/src/components/main/layout/flow.rs @@ -45,6 +45,7 @@ use servo_util::tree::{TreeNode, TreeNodeRef, TreeUtils}; /// The type of the formatting context and data specific to each context, such as line box /// structures or float lists. +#[deriving(Clone)] pub enum FlowContext { AbsoluteFlow(@mut FlowData), BlockFlow(@mut BlockFlowData), @@ -64,12 +65,6 @@ pub enum FlowContextType { Flow_Table } -impl Clone for FlowContext { - fn clone(&self) -> FlowContext { - *self - } -} - impl FlowContext { pub fn teardown(&self) { match *self {