update: cleanup

This commit is contained in:
Lucas F. 2026-01-22 09:38:38 -03:00
parent a6d8795c79
commit ea30958701

View file

@ -44,9 +44,7 @@ pub const Context = struct {
if (@typeInfo(T) == .pointer) {
if (@typeInfo(T).pointer.size == .slice) {
std.debug.print("slice: {any}\n", .{@typeInfo(T).pointer.child});
if (@typeInfo(@typeInfo(T).pointer.child) == .@"struct") {
std.debug.print("struct: {s}\n", .{@typeName(@typeInfo(T).pointer.child)});
var list = try self.allocator().alloc(Value, value.len);
for (value, 0..) |item, i| {
list[i] = try self.toValue(item);