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