summaryrefslogtreecommitdiff
path: root/src/detached/client.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/detached/client.zig')
-rw-r--r--src/detached/client.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/detached/client.zig b/src/detached/client.zig
index 69ab2fdd..cf1842d9 100644
--- a/src/detached/client.zig
+++ b/src/detached/client.zig
@@ -1182,12 +1182,12 @@ test "detached session: a frontend is never asked to fork, write, or watch" {
// One: the union a frontend decodes into has no other variant. Named
// rather than counted, so re-adding `spawn` fails with the name in it.
- const fields = @typeInfo(wire.ServerMsg).@"union".fields;
- inline for (fields) |f| {
+ const fields = @typeInfo(wire.ServerMsg).@"union".field_names;
+ inline for (fields) |name| {
for (allowed) |ok| {
- if (std.mem.eql(u8, f.name, ok)) break;
+ if (std.mem.eql(u8, name, ok)) break;
} else {
- std.debug.print("ServerMsg.{s} is not an effect a frontend may perform\n", .{f.name});
+ std.debug.print("ServerMsg.{s} is not an effect a frontend may perform\n", .{name});
return error.MachineLocalEffectOnTheWire;
}
}