aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-17 15:28:51 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-17 15:30:14 +0200
commit60aaac51750ef1234b37b3923d0e98d646d85a98 (patch)
treeaddd429466d4496f13d83b9bfef673e43560b5c4 /components/script/dom/bindings/codegen
parent2ab7f1366c6e4524341d72229a16cfda10c0857c (diff)
downloadservo-60aaac51750ef1234b37b3923d0e98d646d85a98.tar.gz
servo-60aaac51750ef1234b37b3923d0e98d646d85a98.zip
Remove the custom PartialEq implementations on TypeId enums
https://github.com/rust-lang/rust/pull/33593 made them useless.
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 2b169ba7f8c..b10170be835 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -6377,9 +6377,7 @@ class GlobalGenRoots():
if not config.getInterface(base).getExtendedAttribute("Abstract"):
variants.append(CGGeneric(base))
variants += [CGGeneric(type_id_variant(derivedName)) for derivedName in derived]
- derives = "Clone, Copy, Debug"
- if base != 'EventTarget' and base != 'HTMLElement':
- derives += ", PartialEq"
+ derives = "Clone, Copy, Debug, PartialEq"
typeIdCode.append(CGWrapper(CGIndenter(CGList(variants, ",\n"), 4),
pre="#[derive(%s)]\npub enum %sTypeId {\n" % (derives, base),
post="\n}\n\n"))