update: cleanup
This commit is contained in:
parent
a6d8795c79
commit
ea30958701
1 changed files with 0 additions and 2 deletions
|
|
@ -44,9 +44,7 @@ pub const Context = struct {
|
||||||
|
|
||||||
if (@typeInfo(T) == .pointer) {
|
if (@typeInfo(T) == .pointer) {
|
||||||
if (@typeInfo(T).pointer.size == .slice) {
|
if (@typeInfo(T).pointer.size == .slice) {
|
||||||
std.debug.print("slice: {any}\n", .{@typeInfo(T).pointer.child});
|
|
||||||
if (@typeInfo(@typeInfo(T).pointer.child) == .@"struct") {
|
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);
|
var list = try self.allocator().alloc(Value, value.len);
|
||||||
for (value, 0..) |item, i| {
|
for (value, 0..) |item, i| {
|
||||||
list[i] = try self.toValue(item);
|
list[i] = try self.toValue(item);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue