mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Modify CodegenRust.py to import structs from sequence return values
This commit is contained in:
parent
5ca3ee9474
commit
f3ddee5dbc
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue