mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
compiler: Remove unnecessary StructName::User checks
The node check covers this already.
This commit is contained in:
parent
6f15cca650
commit
d2f294cf3d
7 changed files with 8 additions and 8 deletions
|
|
@ -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)| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue