mach: fix compiler error regarding zig changes (#645)
This commit is contained in:
parent
0e67b92676
commit
052d3a7da8
3 changed files with 10 additions and 11 deletions
|
|
@ -28,12 +28,12 @@ pub const Context = struct {
|
|||
var data: backends.BackendContext = blk: {
|
||||
if (backend) |b| {
|
||||
break :blk try @typeInfo(
|
||||
std.meta.fieldInfo(backends.BackendContext, b).field_type,
|
||||
std.meta.fieldInfo(backends.BackendContext, b).type,
|
||||
).Pointer.child.init(allocator, options);
|
||||
} else {
|
||||
inline for (std.meta.fields(Backend)) |b, i| {
|
||||
if (@typeInfo(
|
||||
std.meta.fieldInfo(backends.BackendContext, @intToEnum(Backend, b.value)).field_type,
|
||||
std.meta.fieldInfo(backends.BackendContext, @intToEnum(Backend, b.value)).type,
|
||||
).Pointer.child.init(allocator, options)) |d| {
|
||||
break :blk d;
|
||||
} else |err| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue