compiler: Remove unnecessary StructName::User checks

The node check covers this already.
This commit is contained in:
Simon Hausmann 2025-11-18 13:57:08 +01:00 committed by Simon Hausmann
parent 6f15cca650
commit d2f294cf3d
7 changed files with 8 additions and 8 deletions

View file

@ -183,7 +183,7 @@ impl CompilationResult {
for struct_or_enum in self.result.structs_and_enums(i_slint_core::InternalToken {}) {
match struct_or_enum {
Type::Struct(s) if s.name.is_some() && s.node.is_some() => {
Type::Struct(s) if s.node.is_some() => {
let struct_instance =
self.type_collection.struct_to_py(slint_interpreter::Struct::from_iter(
s.fields.iter().map(|(name, field_type)| {