diff options
author | bors-servo <release+servo@mozilla.com> | 2014-03-16 04:35:14 -0400 |
---|---|---|
committer | bors-servo <release+servo@mozilla.com> | 2014-03-16 04:35:14 -0400 |
commit | caf1ed94468da3c134cc8e8f4a1b934bb353dc19 (patch) | |
tree | 3c9952c0cf5bdb3645d954b1f61c3a230e327294 /src/components/script/dom/bindings/codegen | |
parent | 082de0e2527238864334dbcbe0d8aa0a9fac2e23 (diff) | |
parent | 7216eee31c0a5d55d948dc72d778874c0d5ddf21 (diff) | |
download | servo-caf1ed94468da3c134cc8e8f4a1b934bb353dc19.tar.gz servo-caf1ed94468da3c134cc8e8f4a1b934bb353dc19.zip |
auto merge of #1929 : saneyuki/servo/const, r=Ms2ger
We can use `TConstants` instead of by #1914 fixed.
Diffstat (limited to 'src/components/script/dom/bindings/codegen')
-rw-r--r-- | src/components/script/dom/bindings/codegen/CodegenRust.py | 2 |
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() |