| author | |
| committer | |
| log | bbab5e19b45436f9828ae988832c1e31b5861683 |
| tree | eff0492d8e0ce89af1e9908dc4febd68dc4ccf0e |
| parent | 4387e50d4fa058ebc064ec8bfae07ef78774a2f4 |
1 files changed, 1 insertions(+), 4 deletions(-)
lib/std/meta/trailer_flags.zig+1-4| ... | ... | @@ -122,10 +122,7 @@ pub fn TrailerFlags(comptime Fields: type) type { |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | pub fn Field(comptime field: FieldEnum) type { |
| 125 | inline for (@typeInfo(Fields).Struct.fields) |field_info, i| { | |
| 126 | if (i == @enumToInt(field)) | |
| 127 | return field_info.field_type; | |
| 128 | } | |
| 125 | return @typeInfo(Fields).Struct.fields[@enumToInt(field)].field_type; | |
| 129 | 126 | } |
| 130 | 127 | |
| 131 | 128 | pub fn sizeInBytes(self: Self) usize { |