mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +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,
|
.leak = leak,
|
||||||
.fuzz = is_fuzz_test,
|
.fuzz = is_fuzz_test,
|
||||||
.log_err_count = std.math.lossyCast(
|
.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,
|
log_err_count,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user