aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-02-19 09:52:48 +0100
committerMs2ger <ms2ger@gmail.com>2015-02-19 09:52:48 +0100
commitc58213b698c8a7c4eac527734ba03cfa82c27f4a (patch)
tree8e2e470cae7da40db9981df8e7099b3ce094cb4f /components/script/dom/bindings/codegen/CodegenRust.py
parentdc31d96f65246def19cb7a23f3a62795cd7344a1 (diff)
downloadservo-c58213b698c8a7c4eac527734ba03cfa82c27f4a.tar.gz
servo-c58213b698c8a7c4eac527734ba03cfa82c27f4a.zip
Remove the Option<Self> arguments from IDLInterface.
Diffstat (limited to 'components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 2bac83bc278..af6af8118cc 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -1920,10 +1920,10 @@ class CGIDLInterface(CGThing):
}
return string.Template("""\
impl IDLInterface for ${type} {
- fn get_prototype_id(_: Option<${type}>) -> PrototypeList::ID {
+ fn get_prototype_id() -> PrototypeList::ID {
PrototypeList::ID::${type}
}
- fn get_prototype_depth(_: Option<${type}>) -> uint {
+ fn get_prototype_depth() -> uint {
${depth}
}
}