Skip to content

Commit ba49abb

Browse files
committed
πŸ”– Support zig 0.14.x
1 parent c8cd114 commit ba49abb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

β€Žbuild.zig.zonβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.{
2-
.name = "chroma",
2+
.name = .chroma,
33
// This is a [Semantic Version](https://semver.org/).
44
// In a future version of Zig it will be used for package deduplication.
55
.version = "0.1.2",
6+
.fingerprint = 0xfebb40f591910f74,
67

78
// This field is optional.
89
// This is currently advisory only; Zig does not yet do anything

β€Žsrc/lib.zigβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn format(comptime fmt: []const u8) []const u8 {
9797
at_least_one_color = true;
9898
} else {
9999
var found = false;
100-
for (@typeInfo(AnsiCode).Enum.fields) |field| {
100+
for (@typeInfo(AnsiCode).@"enum".fields) |field| {
101101
if (std.mem.eql(u8, field.name, maybe_color_fmt[start..end])) {
102102
// HACK: this would not work if I put bgMagenta for example as a color
103103
// TODO: fix this eheh

0 commit comments

Comments
Β (0)