aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@mozilla.com>2014-09-20 12:55:21 -0700
committerCameron Zwarich <zwarich@mozilla.com>2014-09-20 12:55:21 -0700
commitd6ba37c68c34a3748a789caeca225083275757e5 (patch)
treef7d0a43047979744a3ef2490db1cdaf907870ea1 /components/script/dom/bindings/codegen/CodegenRust.py
parent545e9884a6907f04814c6008699c2bbcfef22edd (diff)
parent8aec08074c1535d2c8c9d3bb2208c6f83b82114e (diff)
downloadservo-d6ba37c68c34a3748a789caeca225083275757e5.tar.gz
servo-d6ba37c68c34a3748a789caeca225083275757e5.zip
Merge pull request #3433 from zwarich/jsref-self-helpers
More progress in the &JSRef -> JSRef conversion
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index dd39ff61563..8ec5f24ccdd 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2186,7 +2186,7 @@ class CGCallGenerator(CGThing):
if static:
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
else:
- call = CGWrapper(call, pre="(*%s)." % object)
+ call = CGWrapper(call, pre="%s." % object)
call = CGList([call, CGWrapper(args, pre="(", post=")")])
self.cgRoot.append(CGList([
@@ -4064,7 +4064,7 @@ class CGInterfaceTrait(CGThing):
return "".join(", %s: %s" % argument for argument in arguments)
methods = CGList([
- CGGeneric("fn %s(&self%s) -> %s;\n" % (name, fmt(arguments), rettype))
+ CGGeneric("fn %s(self%s) -> %s;\n" % (name, fmt(arguments), rettype))
for name, arguments, rettype in members()
], "")
self.cgRoot = CGWrapper(CGIndenter(methods),