From 85099358495e971381028da9196efb2bad78e76c Mon Sep 17 00:00:00 2001 From: mhammond Date: Fri, 3 May 2024 01:05:59 +0000 Subject: [PATCH] Built artifacts of 9e61724e4 [ci skip] --- .../uniffi_bindgen/bindings/python/gen_python/mod.rs.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internals/api/src/uniffi_bindgen/bindings/python/gen_python/mod.rs.html b/internals/api/src/uniffi_bindgen/bindings/python/gen_python/mod.rs.html index 6448d75c47..3903724da2 100644 --- a/internals/api/src/uniffi_bindgen/bindings/python/gen_python/mod.rs.html +++ b/internals/api/src/uniffi_bindgen/bindings/python/gen_python/mod.rs.html @@ -915,10 +915,10 @@

Files

let mut ordered = vec![]; for type_ in self.ci.iter_types() { if let Type::Custom { name, builtin, .. } = type_ { - match ordered - .iter() - .position(|x: &(&str, &Type)| *name == x.1.as_codetype().type_label()) - { + match ordered.iter().position(|x: &(&str, &Type)| { + x.1.iter_types() + .any(|nested_type| *name == nested_type.as_codetype().type_label()) + }) { // This 'name' appears as a builtin, so we must insert our type first. Some(pos) => ordered.insert(pos, (name, builtin)), // Otherwise at the end.