aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-13 14:46:14 +0100
committerMs2ger <ms2ger@gmail.com>2015-03-13 14:49:36 +0100
commitb213a80f808725796999e69129b4c490d464c603 (patch)
tree6b11c4f77f118d3050ad9b66a7ec74f74b0a6be2 /components/script/dom/bindings/codegen
parentd7e9b8b96b77377fa37fd59cdb8c44fa866b5b2e (diff)
downloadservo-b213a80f808725796999e69129b4c490d464c603.tar.gz
servo-b213a80f808725796999e69129b4c490d464c603.zip
Remove unused lifetime parameters to dictionaries.
They were used for Root members, but those no longer use lifetimes.
Diffstat (limited to 'components/script/dom/bindings/codegen')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index f1ec208b3b2..470461f76bf 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4362,8 +4362,8 @@ class CGDictionary(CGThing):
def struct(self):
d = self.dictionary
if d.parent:
- inheritance = " pub parent: %s::%s<'a, 'b>,\n" % (self.makeModuleName(d.parent),
- self.makeClassName(d.parent))
+ inheritance = " pub parent: %s::%s,\n" % (self.makeModuleName(d.parent),
+ self.makeClassName(d.parent))
else:
inheritance = ""
memberDecls = [" pub %s: %s," %
@@ -4371,7 +4371,7 @@ class CGDictionary(CGThing):
for m in self.memberInfo]
return (string.Template(
- "pub struct ${selfName}<'a, 'b> {\n" +
+ "pub struct ${selfName} {\n" +
"${inheritance}" +
"\n".join(memberDecls) + "\n" +
"}").substitute( { "selfName": self.makeClassName(d),
@@ -4395,11 +4395,11 @@ class CGDictionary(CGThing):
memberInits = CGList([memberInit(m) for m in self.memberInfo])
return string.Template(
- "impl<'a, 'b> ${selfName}<'a, 'b> {\n"
- " pub fn empty() -> ${selfName}<'a, 'b> {\n"
+ "impl ${selfName} {\n"
+ " pub fn empty() -> ${selfName} {\n"
" ${selfName}::new(ptr::null_mut(), NullValue()).unwrap()\n"
" }\n"
- " pub fn new(cx: *mut JSContext, val: JSVal) -> Result<${selfName}<'a, 'b>, ()> {\n"
+ " pub fn new(cx: *mut JSContext, val: JSVal) -> Result<${selfName}, ()> {\n"
" let object = if val.is_null_or_undefined() {\n"
" ptr::null_mut()\n"
" } else if val.is_object() {\n"