aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-05-30 21:49:09 +0200
committerMs2ger <ms2ger@gmail.com>2014-05-30 21:49:09 +0200
commit0e83f5af007b4d830953c479a766e8fa476e4a63 (patch)
tree83bbacd0e9567bf9f3db905703bb192b34393f5e
parentd7cac61d9cc8e4e9f4ef73aeac21075cc46c62b4 (diff)
downloadservo-0e83f5af007b4d830953c479a766e8fa476e4a63.tar.gz
servo-0e83f5af007b4d830953c479a766e8fa476e4a63.zip
Fix minor misformatting in codegen.
-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)))