test_runner: replace ugly hack with @FieldType

This commit is contained in:
mlugg 2024-11-11 04:57:51 +00:00 committed by Matthew Lugg
parent 05a3ac43e9
commit f83bb94ca6

View File

@ -136,7 +136,7 @@ fn mainServer() !void {
.leak = leak,
.fuzz = is_fuzz_test,
.log_err_count = std.math.lossyCast(
@TypeOf(@as(std.zig.Server.Message.TestResults.Flags, undefined).log_err_count),
@FieldType(std.zig.Server.Message.TestResults.Flags, "log_err_count"),
log_err_count,
),
},