aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-04-28 19:42:46 +0200
committerMs2ger <ms2ger@gmail.com>2015-04-28 23:31:10 +0200
commit903305416a8fd4eef75960f9e83491adaaa519e8 (patch)
tree445f64c0a52c3b554ffc50ee96fe54ea11f32f86 /components/script/dom/bindings/codegen/CodegenRust.py
parentb6fc83cf2b4b426548bb9d10e9493f2b111bd617 (diff)
downloadservo-903305416a8fd4eef75960f9e83491adaaa519e8.tar.gz
servo-903305416a8fd4eef75960f9e83491adaaa519e8.zip
Implement Clone for Copy types.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index b48efbda91d..b63df28d349 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2917,7 +2917,7 @@ class CGEnum(CGThing):
decl = """\
#[repr(usize)]
-#[derive(PartialEq, Copy)]
+#[derive(PartialEq, Copy, Clone)]
#[jstraceable]
pub enum %s {
%s
@@ -5388,8 +5388,8 @@ class GlobalGenRoots():
return CGList([
CGGeneric(AUTOGENERATED_WARNING_COMMENT),
CGGeneric("pub const MAX_PROTO_CHAIN_LENGTH: usize = %d;\n\n" % config.maxProtoChainLength),
- CGNonNamespacedEnum('ID', protos, [0], deriving="PartialEq, Copy"),
- CGNonNamespacedEnum('Proxies', proxies, [0], deriving="PartialEq, Copy"),
+ CGNonNamespacedEnum('ID', protos, [0], deriving="PartialEq, Copy, Clone"),
+ CGNonNamespacedEnum('Proxies', proxies, [0], deriving="PartialEq, Copy, Clone"),
])