aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorZakor Gyula <zakorgy@inf.u-szeged.hu>2017-01-30 11:29:30 +0100
committerAttila Dusnoki <dati91@gmail.com>2017-02-13 14:35:52 +0100
commitf3ddee5dbcecd51c35b7d40c7fc6d767cbfafb27 (patch)
treec06183d6ea8ea7e035e88ba8ca745c50428857a6 /components/script
parent5ca3ee947431afe7af3103db8353a61510155583 (diff)
downloadservo-f3ddee5dbcecd51c35b7d40c7fc6d767cbfafb27.tar.gz
servo-f3ddee5dbcecd51c35b7d40c7fc6d767cbfafb27.zip
Modify CodegenRust.py to import structs from sequence return values
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 84bd4adf3d6..b1f188a7b45 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -1845,6 +1845,8 @@ class CGImports(CGWrapper):
return type.flatMemberTypes
if type.isDictionary():
return [type] + getTypesFromDictionary(type)
+ if type.isSequence():
+ return componentTypes(type.inner)
return [type]
def isImportable(type):