src/ui.zig: update to language changes in Zig 0.12.0-dev.1808+69195d0cd

* New `redundant inline keyword in comptime scope` error
 introduced in https://github.com/ziglang/zig/pull/18227 .

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
Eric Joldasov 2023-12-10 17:38:06 +06:00
parent f03eee5443
commit 1fa40ae498
No known key found for this signature in database
GPG key ID: 5C9C69060686B588

View file

@ -280,7 +280,7 @@ const styles = [_]StyleDef{
pub const Style = lbl: {
comptime var fields: [styles.len]std.builtin.Type.EnumField = undefined;
inline for (&fields, styles, 0..) |*field, s, i| {
for (&fields, styles, 0..) |*field, s, i| {
field.* = .{
.name = s.name,
.value = i,