Modify CodegenRust.py to import structs from sequence return values

This commit is contained in:
Zakor Gyula 2017-01-30 11:29:30 +01:00 committed by Attila Dusnoki
parent 5ca3ee9474
commit f3ddee5dbc

View file

@ -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):