mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
parent
e958d92be6
commit
4cf46bff2d
51 changed files with 97 additions and 137 deletions
|
@ -3189,8 +3189,7 @@ class CGEnum(CGThing):
|
|||
|
||||
decl = """\
|
||||
#[repr(usize)]
|
||||
#[derive(PartialEq, Copy, Clone)]
|
||||
#[jstraceable]
|
||||
#[derive(JSTraceable, PartialEq, Copy, Clone)]
|
||||
pub enum %s {
|
||||
%s
|
||||
}
|
||||
|
@ -5181,7 +5180,7 @@ class CGCallback(CGClass):
|
|||
bases=[ClassBase(baseName)],
|
||||
constructors=self.getConstructors(),
|
||||
methods=realMethods+getters+setters,
|
||||
decorators="#[derive(PartialEq)]#[jstraceable]")
|
||||
decorators="#[derive(JSTraceable, PartialEq)]")
|
||||
|
||||
def getConstructors(self):
|
||||
return [ClassConstructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue