Truly independent web browser
Meta: Allow ArrayBuffer in union results of the Rust bindings
Shannon Booth4e75b6b65215
diff --git a/Meta/Generators/libweb_bindings/rust_types.py b/Meta/Generators/libweb_bindings/rust_types.pyindex 5ab4e37d151..b09aff00b09 100644--- a/Meta/Generators/libweb_bindings/rust_types.py+++ b/Meta/Generators/libweb_bindings/rust_types.py@@ -458,7 +458,7 @@ def rust_type(idl_type: IDLType, context: GenerationContext, what: str, is_resulreturn f"Option<{rust_type(optional_member, context, what)}>"if isinstance(idl_type, IDLUnionType):for member_type in union_member_types(idl_type, context):- rust_type(member_type, context, what)+ rust_type(member_type, context, what, is_result)return rust_union_path(idl_type, context, what)raise UnsupportedByRustBindings(f"{what} has the type {idl_type}, which the Rust bindings do not convert yet")