mirror of
https://github.com/ziglang/zig.git
synced 2024-11-13 23:52:57 +00:00
test_runner: replace ugly hack with @FieldType
This commit is contained in:
parent
05a3ac43e9
commit
f83bb94ca6
@ -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,
|
||||
),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user