aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--src/components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py
index 76b775b35a6..2fb98870617 100644
--- a/src/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/src/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2172,7 +2172,7 @@ class CGCallGenerator(CGThing):
call = CGWrapper(call, pre="%s::" % descriptorProvider.interface.identifier.name)
else:
call = CGWrapper(call, pre="(*%s)." % object)
- call = CGList([call, CGWrapper(args, pre="(", post=");")])
+ call = CGList([call, CGWrapper(args, pre="(", post=")")])
self.cgRoot.append(CGList([
CGGeneric("let result: "),
@@ -2194,7 +2194,7 @@ class CGCallGenerator(CGThing):
" Err(e) => {\n"
"%s"
" throw_dom_exception(cx, &*global, e);\n"
- " return%s;"
+ " return%s;\n"
" },\n"
"};\n" % (glob, errorResult)))