mirror of
https://github.com/servo/servo.git
synced 2025-06-14 19:34:29 +00:00
Make unwrap and unwrap_object less generic.
This commit is contained in:
parent
a4fc6961a8
commit
6ee2e29e62
2 changed files with 6 additions and 6 deletions
|
@ -2648,7 +2648,7 @@ class CGAbstractBindingMethod(CGAbstractExternMethod):
|
|||
" return false as JSBool;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"let this: *%s;" % self.descriptor.concreteType))
|
||||
"let this: *mut %s;" % self.descriptor.concreteType))
|
||||
|
||||
def generate_code(self):
|
||||
assert(False) # Override me
|
||||
|
@ -4156,7 +4156,7 @@ class CGAbstractClassHook(CGAbstractExternMethod):
|
|||
|
||||
def definition_body_prologue(self):
|
||||
return """
|
||||
let this: *%s = unwrap::<*%s>(obj);
|
||||
let this: *mut %s = unwrap::<%s>(obj);
|
||||
""" % (self.descriptor.concreteType, self.descriptor.concreteType)
|
||||
|
||||
def definition_body(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue