aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-03-16 13:50:33 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-03-16 13:50:33 +0900
commit620755b95f2c3067e40c3513a191fd835d4aae84 (patch)
treee61d8583ad38bca8404d998ba0ada6687e2f669d
parent082de0e2527238864334dbcbe0d8aa0a9fac2e23 (diff)
downloadservo-620755b95f2c3067e40c3513a191fd835d4aae84.tar.gz
servo-620755b95f2c3067e40c3513a191fd835d4aae84.zip
Expose named constants in bindings.
-rw-r--r--src/components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py
index 443f68aa318..0d0b76668af 100644
--- a/src/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/src/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2994,7 +2994,7 @@ class CGConstant(CGThing):
def stringDecl(const):
name = const.identifier.name
value = convertConstIDLValueToRust(const.value)
- return CGGeneric("static %s: %s = %s;\n" % (name, builtinNames[const.value.type.tag()], value))
+ return CGGeneric("pub static %s: %s = %s;\n" % (name, builtinNames[const.value.type.tag()], value))
return CGIndenter(CGList(stringDecl(m) for m in self.constants)).define()