From 4e3e490b92520f57e31d83447477aaec3e8102b0 Mon Sep 17 00:00:00 2001 From: lyken Date: Fri, 23 Aug 2024 16:27:49 +0800 Subject: [PATCH] fixup! core/object: add ListObject and TupleObject fix List field items name --- nac3core/src/codegen/object/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/object/list.rs b/nac3core/src/codegen/object/list.rs index 41bdda21..86edcbf8 100644 --- a/nac3core/src/codegen/object/list.rs +++ b/nac3core/src/codegen/object/list.rs @@ -25,7 +25,7 @@ impl<'ctx, Item: Model<'ctx>> StructKind<'ctx> for List { fn traverse_fields>(&self, traversal: &mut F) -> Self::Fields { Self::Fields { - items: traversal.add("data", Ptr(self.item)), + items: traversal.add("items", Ptr(self.item)), len: traversal.add_auto("len"), } }