diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-02-19 09:52:48 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-02-19 09:52:48 +0100 |
commit | c58213b698c8a7c4eac527734ba03cfa82c27f4a (patch) | |
tree | 8e2e470cae7da40db9981df8e7099b3ce094cb4f /components/script/dom/bindings/codegen/CodegenRust.py | |
parent | dc31d96f65246def19cb7a23f3a62795cd7344a1 (diff) | |
download | servo-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.py | 4 |
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} } } |