mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Remove the custom PartialEq implementations on TypeId enums
https://github.com/rust-lang/rust/pull/33593 made them useless.
This commit is contained in:
parent
2ab7f1366c
commit
60aaac5175
3 changed files with 3 additions and 64 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue