| ... | @@ -111,7 +111,7 @@ pub fn sliceToInt(comptime T: type, comptime E: type, slice: []const E) !T { | ... | @@ -111,7 +111,7 @@ pub fn sliceToInt(comptime T: type, comptime E: type, slice: []const E) !T { |
| 111 | } | 111 | } |
| 112 | | 112 | |
| 113 | pub fn FieldType(comptime T: type, comptime field: std.meta.FieldEnum(T)) type { | 113 | pub fn FieldType(comptime T: type, comptime field: std.meta.FieldEnum(T)) type { |
| 114 | return std.meta.fieldInfo(T, field).field_type; | 114 | return std.meta.fieldInfo(T, field).type; |
| 115 | } | 115 | } |
| 116 | | 116 | |
| 117 | pub fn fileList(alloc: std.mem.Allocator, dir: std.fs.IterableDir) ![]string { | 117 | pub fn fileList(alloc: std.mem.Allocator, dir: std.fs.IterableDir) ![]string { |
| ... | @@ -231,7 +231,7 @@ pub fn FieldsTuple(comptime T: type) type { | ... | @@ -231,7 +231,7 @@ pub fn FieldsTuple(comptime T: type) type { |
| 231 | const fields = std.meta.fields(T); | 231 | const fields = std.meta.fields(T); |
| 232 | var types: [fields.len]type = undefined; | 232 | var types: [fields.len]type = undefined; |
| 233 | for (fields) |item, i| { | 233 | for (fields) |item, i| { |
| 234 | types[i] = item.field_type; | 234 | types[i] = item.type; |
| 235 | } | 235 | } |
| 236 | return std.meta.Tuple(&types); | 236 | return std.meta.Tuple(&types); |
| 237 | } | 237 | } |